hschool | R Documentation |
Recorded are the number of days of absence, gender, and two test scores of 316 high school juniors from two urban high schools.
data("hschool")
A data frame with 316 observations on the following 5 variables.
school
school of the two, coded 1 or 2;
male
whether the student is male, coded 1: male; 0: female;
math
the standardized test score for math;
langarts
the standardized test score for language arts;
daysabs
the number of days of absence.
Some school administrators studied the attendance behavior of high school juniors at two schools. Predictors of the number of days of absence include gender of the student and standardized test scores in math and language arts. The original source of this data set is unknown.
Dabao Zhang, Department of Statistics, Purdue University
UCLA IDRE Statistical Consulting Group for data analysis.
rsq, rsq.partial, pcor, simglm
.
data(hschool)
summary(hschool)
head(hschool)
require(MASS)
absfit <- glm.nb(daysabs~school+male+math+langarts,data=hschool)
summary(absfit)
rsq(absfit)
rsq(absfit,adj=TRUE)
rsq.partial(absfit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.