Displaying 2 results from an estimated 2 matches for "himinty".
Did you mean:
aiminy
2012 May 12
2
Why can we combine design matrix and data-frame in R?
...;, "Sex", "SES", "MathAch",
"MEANSES")
head(MathAchieve)
MathAchSchool <- read.table("mathachschool.txt")
colnames(MathAchSchool) <- c("School", "Size", "Sector", "PRACAD",
"DISCLIM", "HIMINTY", "MEANSES")
MathScores <- merge(MathAchieve, MathAchSchool, by = "School")
lm1 = lm(MathAch ~ SES + factor(Sector) , MathScores)
X=model.matrix(MathAch ~ SES+factor(Sector) , MathScores)
y=MathScores$MathAch
tmp=MathScores
tmp$y=y
tmp$X=X
lm1x = lm(y~X-1, tmp)
pl...
2003 Jun 25
3
joining columns as in a relational database
In our recent workshop on "Multilevel Modeling in R" we discussed
handling data for multilevel modeling. An classic example of such
data are test scores of students grouped into schools. We may wish to
model the scores as functions of both student-level covariates and
school-level covariates.
Such data are often organized in a multi-table format with a separate table
for each level of