search for: tiss0

Displaying 2 results from an estimated 2 matches for "tiss0".

Did you mean: tiss
2007 Nov 08
1
how to generate data in a simulation study
...n study. I have a logistic model to evaluate p by 3 covariates. I need to generate 4 variables: the binary outcome Y and 3 covariates: gender (binary) and aps and tiss (continuous variables). I have the logistic model which is the expected model: log(p(y=1)/(1-p(y=1))=-1.659-0.05*sex+0.063*aps+0.04*tiss0) I generate the outcome y like this: for (i in 1:500){ z1[i] <- rbinom(1, 1, .6) x1[i] <- rbinom(1, 1, .95) y1[i] <- z1[i]*x1[i] } my question is : how to generate the covariates aps, which can get values between 2-37, and tiss, which can get values between 9-36. I want at the and...
2008 Feb 23
1
clarification about glm
...at1<-data.frame(y,unit,x1,x2) log_u <- glm(y~.,family=binomial,data=dat1) summary(log_u) Estimate Std. Error z value Pr(>|z|) (Intercept) -0.54247 0.24658 -2.200 0.0278 * unit1 -0.13052 0.22861 -0.571 0.5680 aps 0.03098 0.01433 2.162 0.0306 * tiss0 0.02522 0.01101 2.291 0.0219 * Thank you, Sigalit. [[alternative HTML version deleted]]