Displaying 5 results from an estimated 5 matches for "mathachschool".
2003 Jun 25
3
joining columns as in a relational database
...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 information. The MathAchieve and MathAchSchool data
frames in the nlme package are examples of such an organization. The
HLM software requires the data to be organized like this. To fit a
model in R we need to create a composite table by "joining" the
columns of the student-level and school-level tables, in the
relational database s...
2012 May 12
2
Why can we combine design matrix and data-frame in R?
...#39;s something I would like to catch and avoid...)
Thank you!
-------------------------------
The data is located at:
http://www.ling.uni-potsdam.de/~vasishth/book.html
In the section:
downloadable errata, code, datasets
•ERRATA
•Corrected Pages
•VasishthBroebook.R
•beauty.txt
•mathachieve.txt
•mathachschool.txt
------------------------------
MathAchieve <- read.table("mathachieve.txt")
colnames(MathAchieve) <- c("School", "Minority", "Sex", "SES", "MathAch",
"MEANSES")
head(MathAchieve)
MathAchSchool <- read.table(&q...
2004 Jan 07
2
problem assigning an array to a variable in a data frame
...members,
Dirk Eddelbuettel brought the following problem to my attention. The code
is abstracted from the appendix on mixed models from my R and S-PLUS Companion:
> set.seed(12345) # for reproducibility
> library(nlme)
Loading required package: lattice
> data(MathAchieve)
> data(MathAchSchool)
> attach(MathAchieve)
> mses <- tapply(SES, School, mean)
> detach(MathAchieve)
> Bryk <- as.data.frame(MathAchieve[, c("School", "SES", "MathAch")])
> names(Bryk) <- c("school", "ses", "mathach")
> sample...
2002 May 02
2
problem with lme in nlme package
Dear R list members,
I've turned up a strange discrepancy between results obtained from the lme
function in the nlme package in R and results obtained with lme in S-PLUS.
I'm using version 3.1-24 of nlme in R 1.4.1 under Windows 2000, and both
S-PLUS 2000 and 6.0, again under Windows 2000.
I've noticed discrepancies in a couple of instances. Here's one, using data
from Bryk
2004 Dec 19
1
PBIB datataset
I'm looking at Pinheiro & Bates "Mixed-Effects Models in
S and S-PLUS" at the moment. Several datasets are used,
one of which is called "PBIB" (a partially balanced
incomplete block design).
All the other datasets can be found somewhere or other in R.
However, I cannot locate PBIB, and it does not seem to
be mentioned in the latest edition of the R Full Reference