Learn R Programming

ACSWR (version 1.0)

Disease: Disease Outbreak Study

Description

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.

Usage

data(Disease)

Arguments

Format

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

References

Kutner, M. H., Nachtsheim, C. J., Neter, J., and Li, W. (1974-2005). Applied Linear Statistical Models, 5e. McGraw-Hill.

Examples

Run this code
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

Run the code above in your browser using DataLab