Hi,
I am using STATA 13 with windows 7.
I want to report prevalence ration using these lines:
logit bmi3 i.inactive age18 female white diet bmi2, or
margins inactive, post
margins, coeflegend
nlcom (ratio1: _b[1.inactive]/_b[0bn.inactive]), post
test ratio1 = 1
Then I want to use the putexcel function.
But when I used this code it did not work. I would appreciate your input.
logit bmi3 i.inactive age18 female white diet bmi2, or
margins inactive, post
margins, coeflegend
nlcom (ratio1: _b[1.inactive]/_b[0bn.inactive]), post
matrix M = r(table)
putexcel A1= (M[1,1]) A2=(M[1,2]) A3=(M[1,3]) B1=(M[2,1]) B2=(M[2,2]) B3=(M[2,3]) using testrevision.xlsx, modify
test ratio1 = 1
I am using STATA 13 with windows 7.
I want to report prevalence ration using these lines:
logit bmi3 i.inactive age18 female white diet bmi2, or
margins inactive, post
margins, coeflegend
nlcom (ratio1: _b[1.inactive]/_b[0bn.inactive]), post
test ratio1 = 1
Then I want to use the putexcel function.
But when I used this code it did not work. I would appreciate your input.
logit bmi3 i.inactive age18 female white diet bmi2, or
margins inactive, post
margins, coeflegend
nlcom (ratio1: _b[1.inactive]/_b[0bn.inactive]), post
matrix M = r(table)
putexcel A1= (M[1,1]) A2=(M[1,2]) A3=(M[1,3]) B1=(M[2,1]) B2=(M[2,2]) B3=(M[2,3]) using testrevision.xlsx, modify
test ratio1 = 1
Comment