Displaying 2 results from an estimated 2 matches for "insheet".
Did you mean:
inset
2008 Aug 19
1
R vs Stata on generalized linear mixed models: glmer and xtmelogit
...uot;smoke",1:2]
lap <- glmer(resp~smoke+factor(age)+(1|id), family=binomial,data)
attributes(summary(lap))$coefs["smoke",1:2]
agq7 <- glmer(resp~smoke+factor(age)+(1|id),nAGQ=7,family=binomial,data)
write.csv(data,file="data.csv")
This is the code for Stata:
clear
insheet using data.csv
xi: xtmelogit resp smoke i.age, || id:, covariance(independent) laplace
xi: xtmelogit resp smoke i.age, || id:, covariance(independent)
Results:
- Both the point estimate and the standard error for the fixed effect, and the standard deviation for random effect of 'glmmPQL'...
2012 Jul 06
4
differences between survival models between STATA and R
Dear Community,
I have been using two types of survival programs to analyse a data set.
The first one is an R function called aftreg. The second one an STATA
function called streg.
Both of them include the same analyisis with a weibull distribution. Yet,
results are very different.
Shouldn't the results be the same?
Kind regards,
J
--
View this message in context: