Hello all,
I have been trying to recreate SAS output in Stata but keep getting discrepancies. Unfortunately, the biostatistician only gave me the output and not the SAS code so I am trying to recreate the analyses in Stata by using the output.
First, I tried to check skewness and kurtosis and there was quite a discrepancy but I soon learned that is because SAS and Stata use different formulas.
Now, I am trying to create GEE analyses but I am not getting the same results.
This is what I am using to decipher the SAS analyses:
Distribution Normal Link Function Identity Observations Used 1375
GEE Model Information: Correlation Structure AR(1)
Subject Effect SBA (55 levels) Number of Clusters 55
Correlation Matrix / Cluster Size 25 (years)
tm=years; tm5=(tm-5)*(tm>=5); tm10=(tm-10)*(tm>=10); tm19=(tm-19)*(tm>=19);
Dependent Variable sallfd = sqrt(All_food) Algorithm converged.
GEE Fit Criteria
I have tried the following:
xtset SBA year
xtgee sAllfd tm tm5 tm10 tm19 i.Gcode Gcode#c.tm Gcode#c.tm5 Gcode#c.tm10 Gcode#c.tm19, family(gaussian) link(identity) corr(ar1)
Would this be incorrect since xtgee provides fit population-averaged panel-data models by using GEE?
Any help is most welcomed.
Related Posts with How to recreate longitudinal analyses from SAS in STATA using xtgee only using SAS output???
Manipulating string -- Delete everything after space Code: +--------------------------------------------------------+ | sex age …
Writing results to file when model fails to convergeHello list users. I am hoping someone has tired to do something all the lines of the following. I am…
Invalid SyntaxWe wanted to create an do-file for a coefficient-estimation for the previos 36 months for each fund …
Suppress legend on twoway graphI'm generating a graph with lines of best fit and it works fine but when I try and suppress the lege…
Omitted variable due to CollinearityHi guys, I am trying to find which coefficient beta 1 or 2 has a greater effect on child mortality.…
Subscribe to:
Post Comments (Atom)
0 Response to How to recreate longitudinal analyses from SAS in STATA using xtgee only using SAS output???
Post a Comment