Hello,
I am analysing some datasets by using several methods and I create a loop for doing this. However, I got problems when capture the estimates of t-test and two-way ANOVA. here's my code within the loop but it is not correct.
May I ask how can I capture the estiates?
Thank you!
* t-test
ttest y, by(trt)
local tp = `r(p)'
local tEST =[]
*anova
anova y trt site
test 1.trt
local anop = `r(p)'
local anoEST = _b[1.trt]
I am analysing some datasets by using several methods and I create a loop for doing this. However, I got problems when capture the estimates of t-test and two-way ANOVA. here's my code within the loop but it is not correct.
May I ask how can I capture the estiates?
Thank you!
* t-test
ttest y, by(trt)
local tp = `r(p)'
local tEST =[]
*anova
anova y trt site
test 1.trt
local anop = `r(p)'
local anoEST = _b[1.trt]
Comment