Displaying 2 results from an estimated 2 matches for "eform".
Did you mean:
form
2010 Nov 16
1
Offset in glm poisson using R vs Exposure in Stata
...finding my own way through; learning code etc. at the same time as learning the statistics I need to complete my project.
What I have is the code from Stata and am trying to reproduce the same analysis in R - my program of choice.
. glm count md ms rf sg, family(poisson)
exposure(effort) eform
I am lost at the point of finding the equivalent code for 'exposure'.
Having looked at a few forums and 'googled'. I thought 'offset', used as offset=(log(Eff)) or the equivalent +offset(log(Eff)) would produce the desired effect.
Incidentally my code was:...
2007 Jan 06
2
negative binomial family glm R and STATA
...omial model on this data set. The reader will find
the dataset in a dumped format below for trials.
A friend of mine tried the same with STATA and got the following result
without any warning from STATA :
. glm nbcas pop area v_100khab gares ports axe_routier lacs,
family(nbinomial) link(log) eform
Iteration 0: log likelihood = -616.84031
Iteration 1: log likelihood = -599.77767
Iteration 2: log likelihood = -597.22486
Iteration 3: log likelihood = -597.14784
Iteration 4: log likelihood = -597.14778
Iteration 5: log likelihood = -597.14778
Generalized linear models...