Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: SV: Re: Simulate relative risk


From   "Tomas Lind" <tomas.lind@ki.se>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: SV: Re: Simulate relative risk
Date   Fri, 19 Mar 2010 12:47:13 +0100

Thank you Joseph. I´ll try that. 

/Tomas



-----Ursprungligt meddelande-----
Från: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] För Joseph Coveney
Skickat: den 19 mars 2010 11:31
Till: statalist@hsphsun2.harvard.edu
Ämne: st: Re: Simulate relative risk

Tomas Lind wrote:

Does anyone know how to generate fake data for a dichotomous outcome (0, 1)
that is dependent on a continuous exposure variable in an epidemiological
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.

----------------------------------------------------------------------------
----

Roberto Gutierrez has written a command that will do what you want.  Type

findit genbinomial

at the command line in Stata and then click on the hyperlink to see more
about
it.  Follow the links to download and install it.  Use it with the -xbeta()
link(log)- pair of options in order to do what you're asking for.

Joseph Coveney


*
*   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/


*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index