HSB {candisc}R Documentation

High School and Beyond Data

Description

Data from the High School and Beyond study.

Usage

data(HSB)

Format

A data frame with 600 observations on the following 15 variables.

id
a numeric vector
gender
a factor with levels male female
race
a factor with levels hispanic asian african-amer white
ses
a factor with levels low middle high
sch
a factor with levels public private
prog
a factor with levels general academic vocation
locus
a numeric vector
concept
a numeric vector
mot
a numeric vector
career
a factor with levels clerical craftsman farmer homemaker laborer manager military operative prof1 prof2 proprietor protective sales school service technical not working
read
a numeric vector
write
a numeric vector
math
a numeric vector
sci
a numeric vector
ss
a numeric vector

Details

Source

Tatsuoka, M. M. (1988). Multivariate Analysis: Techniques for Educational and Psychological Research (2nd ed.). New York: Macmillan, Appendix F.

Retrieved from: http://www.gseis.ucla.edu/courses/data/hbs6.dta

References

Examples

str(HSB)
# main effects model
hsb.mod <- lm( cbind(read, write, math, sci, ss) ~
                gender + race + ses + sch + prog, data=HSB)
Anova(hsb.mod)

# Add some interactions
hsb.mod1 <- update(hsb.mod, . ~ . + gender:race + ses:prog)
heplot(hsb.mod1, col=palette()[c(2,1,3:6)], variables=c("read","math"))

hsb.can1 <- candisc(hsb.mod1, term="race")
heplot(hsb.can1, col=c("red", "black"))

# show canonical results for all terms
hsb.can <- candiscList(hsb.mod)
hsb.can


[Package candisc version 0.5-9 Index]