Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
jhilbe@aol.com |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: RE: risk ratio |

Date |
Sun, 21 Mar 2010 10:51:47 -0400 |

can be used to estimate a relative risk ratio:

risk ratio.

I hope that this is what you were looking for. Joseph Hilbe * intercept = 2; Beta for X1=0.75 clear set obs 50000 set seed 1230 gen x1 = invnorm(runiform()) gen xb = 2 + 0.75*x1 gen exb = 1/(1+exp(-xb)) gen by = rbinomial(1, exb) glm by x1, nolog fam(bin 1) glm by x1, nolog fam(poi) eform robust . glm by x1, nolog fam(bin 1)

Scale parameter = 1

Variance function: V(u) = u*(1-u) [Bernoulli] Link function : g(u) = ln(u/(1-u)) [Logit]

------------------------------------------------------------------------- ----- | OIM

-------------+----------------------------------------------------------- -----

------------------------------------------------------------------------- ----- . glm by x1, nolog fam(poi) eform robust

Scale parameter = 1

Variance function: V(u) = u [Poisson] Link function : g(u) = ln(u) [Log]

------------------------------------------------------------------------- ----- | Robust

-------------+----------------------------------------------------------- -----

------------------------------------------------------------------------- ----- . Tomas Lind wrote:

relative risk context. I know how to use the logit transformation but in that case exposure is proportional to log(ods) and not to risk. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**st: SV: RE: risk ratio***From:*"Tomas Lind" <tomas.lind@ki.se>

- Prev by Date:
**Re: st: RE: Display of -ml- results - broken code with latest update of Stata 11** - Next by Date:
**re: Re: st: Estout after xtmixed with ar(1) residuals** - Previous by thread:
**st: Display of -ml- results - broken code with latest update of Stata 11** - Next by thread:
**st: SV: RE: risk ratio** - Index(es):