Description Usage Format References Examples
The purpose of this health study is investigation of an epidemic outbreak due to mosquitoes. A random sample from two sectors of the city among the individuals has been tested to determine if the individual had contracted the disease forming the binary outcome.
1 |
A data frame with 98 observations on the following 5 variables.
x1
age
x2
socioeconomic status of three categories between x2
and x3
x3
socioeconomic status of three categories between x2
and x3
x4
sector of the city
y
if the individual had contracted the disease forming the binary outcome
Kutner, M. H., Nachtsheim, C. J., Neter, J., and Li, W. (1974-2005). Applied Linear Statistical Models, 5e. McGraw-Hill.
1 2 3 4 5 6 7 | data(Disease)
DO_LR <- glm(y~.,data=Disease,family='binomial')
LR_Residuals <- data.frame(Y = Disease$y,Fitted = fitted(DO_LR),
Hatvalues = hatvalues(DO_LR),Response = residuals(DO_LR,"response"), Deviance =
residuals(DO_LR,"deviance"), Pearson = residuals(DO_LR,"pearson"),
Pearson_Standardized = residuals(DO_LR,"pearson")/sqrt(1-hatvalues(DO_LR)))
LR_Residuals
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.