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???
Assistance with dow commandHello, I am working with a dataset from 2016 and would like to identify the day of the week from the…
Problem to replicate anova with mvreg Dear Stata listers I'm a little confused. I want to calculate a manova with imputed data (mi e…
Looping over observationHi, I want to run one-sample test of proportion using following data and save p-val for each obs. pr…
gsem fail to converge with cov optionHello everyone, I try to estimate a generalized structural equation model. I have multilevel data (…
log transformationAs i am not a statistician i have a naive question. i have 50 dependent variables that i want to reg…
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