Re: [R] bootstrap glm

2016-02-29 Thread Adams, Jean
​It's helpful if you post example data with your question, so R-help readers can easily test your code​. I created a fake data set with two x variables for testing. It's also helpful if you list the necessary packages. I assume that used the boot package. You are dealing with two kinds of indic

[R] bootstrap glm

2016-02-25 Thread Hassan, Nazatulshima
Hi I have a data with an outcome,Y and 10 predictors (X1-X10). My aim is to fit a logistic model to each of the predictors and calculate the deviance difference (dDeviance). And later on bootstrapping the dDeviance for 100 times (R=100). I tried the following function. It is calculating the origi