[R] Beta-Binomial Regression in R
smartpink111 at yahoo.com
Sun Jul 29 07:44:10 CEST 2012
Isn't the same question posted on stackoverflow (http://stackoverflow.com/questions/11705062/generating-beta-binomial-responses-with-covariates)? I guess you got the answer there.
In general, cross-posting is not that preferred in R.
----- Original Message -----
From: Anamika Chaudhuri <canamika at gmail.com>
To: r-help at r-project.org
Sent: Saturday, July 28, 2012 6:28 PM
Subject: [R] Beta-Binomial Regression in R
I am trying to generate Beta-Binomial data with regressors using R. I have
used the following code to generate Beta-Binomial data. Now I want to add
a covariate to the equation. I would then like to use the simulated data to
run the Beta-Binomial model with covariates on it. Appreciate any help.
p<-rbeta(k,3,3)# so that the mean nausea rate is alpha/(alpha+beta)
for(i in 1:k)
[[alternative HTML version deleted]]
R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help