search for: kid2

Displaying 4 results from an estimated 4 matches for "kid2".

Did you mean: kid
2006 Oct 20
1
understanding virtual classes and extensions thereof
...e 'Matrix' package). I think they arise from my not understanding the best way to specify virtual subclasses of a virtual class. please see questions below code. setClass("mom") setClass("kid1", representation("mom", "VIRTUAL")) setClass("kid2", representation("VIRTUAL"), contains = "mom") setClass("kid3"); setIs("kid3", "mom") (i) Are 'kid1' and 'kid2' equivalent? I.e., is there any difference between including a superclass as an unnamed argument in the 're...
2012 Mar 19
2
Reshape from long to wide
...n't figure why. In my data, I have the length of two fish from each family. My data table (called fish) looks like this: family length 14 18 14 7 15 7 15 21 17 50 17 21 18 36 18 21 20 36 20 42 24 56 24 42 25 43 25 56 27 15 27 42 28 7 28 42 29 56 29 49 I want it to look like this: family kid1 kid2 14 18 7 15 7 21 17 50 21 18 36 21 28 36 42 24 56 42 25 43 56 27 15 42 28 7 42 29 56 49 I've tried: >cast( fish, fam~length) and got the error message: Using length as value column. Use the value argument to cast to override this choice Error in `[.data.frame`(data, , variables, drop = F...
2008 Nov 07
2
Vectorizing sample()
I am simulating sickness among a group of families. Part of the task is to randomly draw who in the family will be sick, randomly drawing from family ID's where Dad =1, Mom = 2, Kid1 = 3, Kid2 = 4., etc. My census of Dads is of the form shown below. Dad_ID Spouse (Y=1;N=0) #Kids #People_Becoming_Sick 1 1 0 1 2 0 2 2 3 1...
2005 Sep 04
1
Question regarding lmer with binary response
Dear all, dear Prof. Bates, my dependent variable (school absenteeism, truancy[1]) is a binary response for which I am trying to compute an unconditional mixed effects model. I've got observations (monday, wednesday and friday) nested in individuals (ID2), which were nested in classes (KID2) and schools (SID), i.e. a 4-level mixed effects model. In short, I was trying without success. I got no sensible results using lmer as well as using glmmPQL. I played around with the control parameters and the methods (PQl, Laplace) in lmer without any effect. I would really appreciate if...