Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: saving coefficients from ANOVA


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: saving coefficients from ANOVA
Date   Tue, 14 Jul 2009 19:56:22 +0200

<> 

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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von
E.Bonin@lse.ac.uk
Gesendet: Dienstag, 14. Juli 2009 18:00
An: 'statalist@hsphsun2.harvard.edu'
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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index