Displaying 7 results from an estimated 7 matches for "mathachiev".
Did you mean:
mathachieve
2013 Nov 04
2
Fwd: recodificar variables
Buenas noches, mi pregunta es tal vez sencilla.
tengo esta libreria y estos datos
library(nlme)
data(MathAchieve) Infoest = MathAchieve
en esta base quiero contar la cantidad de casos en la que la columna Sex,
toma el valor Female, como puedo hacerle el filtro para ver solo los
Females.
y como puedo dentro del mismo conjunto de datos agregar la variable
numerica que me cuente 1 si es Female y 0 si no
Muchas...
2003 Jun 25
3
joining columns as in a relational database
...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 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
re...
2012 May 12
2
Why can we combine design matrix and data-frame in R?
...ally fail?
(that'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...
2004 Jan 07
2
problem assigning an array to a variable in a data frame
Dear r-devel list 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", "...
2013 Nov 04
0
Fwd: recodificar variables
Hola Alexander.
Para filtrar y obtener el subconjunto que necesitas, puedes hacerlo de la siguiente (una de ellas) manera:
> Female <- subset(MathAchieve, subset=Sex=="Female")
Crear una nueva variable recodificando "Sex" puedes hacerlo así:
> Sex_recode <- Recode(MathAchieve$Sex, '"Female"=1; "Male"=0; ;', as.factor.result=TRUE)
> summary(MathAchieve$Sex)
Male Female
3390 3795
>...
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