Learn R Programming

rsq (version 0.6)

hschool: Attendance Behavior of High School Juniors

Description

Recorded are the number of days of absence, gender, and two test scores of 316 high school juniors from two urban high schools.

Usage

data("hschool")

Arguments

Format

A data frame with 316 observations on the following 5 variables.

Details

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.

Examples

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

Run the code above in your browser using DataLab