Re: [R] Statistical question about logistic regression simulation

2009-08-26 Thread Ravi Varadhan
[mailto:r-help-boun...@r-project.org] On Behalf Of Denis Aydin Sent: Wednesday, August 26, 2009 10:18 AM To: r-help@r-project.org Subject: [R] Statistical question about logistic regression simulation Hi R help list I'm simulating logistic regression data with a specified odds ratio (beta) and

[R] Statistical question about logistic regression simulation

2009-08-26 Thread Denis Aydin
Hi R help list I'm simulating logistic regression data with a specified odds ratio (beta) and have a problem/unexpected behaviour that occurs. The datasets includes a lognormal exposure and diseased and healthy subjects. Here is my loop: ors <- vector() for(i in 1:200){ # First, I creat