Displaying 8 results from an estimated 8 matches similar to: "joining columns as in a relational database"
2012 May 12
2
Why can we combine design matrix and data-frame in R?
Hi all,
Could you please help me?
I am trying to understand why this line works:
lm1x = lm(y~X-1, tmp)
Here it seems that I was combining the design matrix and the data frame...
And X below is not a single column, in fact, it's a bunch of columns in
matrix form...
I don't understand why this line works...
Is it just luck, i.e. if we change the data-set and/or formulas to
something
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,
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
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
2012 Aug 15
1
shade overlapping portions of circles (or other shapes)
I'm making some illustrations and it would be convenient to
automatically shade the overlapping portions of circles. These
illustrations are for Social Choice theory, a field in political
science and economics. I've wrestled together some examples so you
can see what I mean, but have not mastered the "color overlapping
sections" problem (as you will see):
2001 Jul 12
3
Install wine, dependency problem, newbie woes
Downloaded wine from codeweavers and tried to install with Kpackage.
"Needs libXv.so.1" Tried locating lib* with Google, but Google
comes up with packages with different names. Maybe the lib I need is
part of a larger library. So, where to find what I need, and then what
to do with it (eg. just copy to /lib)??
Thanks in advance for clues,
dave
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)
>