[R] converting a t statistic to r2

2005-08-12 Thread Shaw, Philip (NIH/NIMH)
HI I wonder if anyone can help. I have a longitudinal sample of 100 subjects: 200 data points were acquired starting at different ages and at irregular intervals (subjects have different numbers of repeated data points, so some have only one data point). I have been examining the relationship o

[R] nested random effects

2005-03-23 Thread Shaw, Philip (NIH/NIMH)
Hi I am struggling with nested random effects and hope someone can help. I have individuals (ID) who are nested within families (FAM). I want to model an outcome variable, and take account of the intercorrelation of individuals within each family. I think this amounts to two random effe

[R] (no subject)

2004-08-11 Thread Shaw, Philip (NIH/NIMH)
Hi A very simple question (from a R novice) How do I create a new variable within R. I have two existing variables (eg group number 1,2,3 and diagnosis 1,2,3). How would I create a new variable in which those in group1 with diagnosis 1 are assigned 'positive' and the remainder are 'negative'?