Code
# Import Data
= readr::read_csv(file = "https://raw.githubusercontent.com/zief0002/modeling/main/data/substance-family.csv")
family
# View data
family
This data, stored in substance-family.csv includes four attributes on \(n = 910\) 10th-grade students. These data come from Keith (2015). The attributes are:
substance_use
: Composite based on student-reported use of cigarettes (How many cigarettes smoked per day), alcohol (In lifetime, number of times had alcohol to drink), and marijuana (In lifetime, number of times used marijuana). To compute this composite index, the three self-reported values were standardized and then averaged.family_structure
: Adult composition of the household with three levels (Two-parent family
, One-parent, one guardian
, andSingle-parent family
)female
: Dummy-coded sex variable (0 = Not female; 1 = Female)gpa
: Composite GPA on a 10-pt scale# Import Data
= readr::read_csv(file = "https://raw.githubusercontent.com/zief0002/modeling/main/data/substance-family.csv")
family
# View data
family