<>
You might want to add the -regress- option to -anova- to comprehend what
-parmest- actually saves...
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Dienstag, 14. Juli 2009 19:56
To: [email protected]
Subject: st: AW: saving coefficients from ANOVA
<>
To save them to a file, Roger`s -parmest- package is most suitable...
*************
webuse systolic, clear
anova systolic drug
capt ssc inst parmest
parmest, saving(myfile, replace)
u myfile, clear
l
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von
[email protected]
Gesendet: Dienstag, 14. Juli 2009 18:00
An: '[email protected]'
Betreff: st: saving coefficients from ANOVA
Good afternoon,
Apologies if this has been answered before, I haven't been able to find
anything.
I am trying to write a programme that estimates differences between two
groups (var condition) using ANCOVA, first for costs, then for
effectiveness. This programme should then be run within the bootstrap
command. The output I need is replications of paired cost differences and
effectiveness differences. However, I can't seem to work out how to save the
coefficient of group difference as a scalar (to a new dataset).
Below is what I've got so far, I'm sure there is a fairly simple solution to
this but I am new to STATA and any help would be appreciated.
With best wishes,
Eva
capture program drop bscer
program define bscer
anova t2totalco t1totalco condition, continuous(t1totalco)
???? (save coefficient to bcd)
anova tariffch bstariff Conditio, continuous(bstariff)
???? (save coefficient to bqd)
end
clear
use "data.dta"
bootstrap "bscer t2totalco t1totalco condition tariffch bstariff" "bcd bqd",
reps(1000) saving(bootstrapped.dta) replace strata(condition) notable
clear
Please access the attached hyperlink for an important electronic
communications disclaimer:
http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/