Description Format Source Examples
madras
contains a subset of the data from the Madras Longitudinal Schizophrenia Study, which collected monthly symptom data on 86 schizophrenia patients after their initial hospitalization. The primary question of interest is whether subjects with an older age-at-onset tend to recover more or less quickly, and whether female patients recover more or less quickly. Recovery is measured by a reduction in the presentation of symptoms.
A data frame with 922 observations on the following 5 variables.
thought
an indicator for thought disorders
age
an indicator for age-at-onset >= 20 years
gender
an indicator for female gender
month
months since hospitalization
id
a unique patient identifier
ADD SOURCE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
# Replication of Table 4 from Schildcrout and Heagerty 2007.
data(madras)
madras2 = madras[,c('id','thought','month')]
madras2$gender = (madras$gender==0)*1 # Male
madras2$age = (madras$age==0)*1 # 1= <20
mLV = mm(thought~month + age + gender + age:month + gender:month,
lv.formula=~1, data=madras2,id=id)
mT = mm(thought~month + age + gender + age:month + gender:month,
t.formula=~1, data=madras2,id=id)
mTLV = mm(thought~month + age + gender + age:month + gender:month,
lv.formula=~1, t.formula=~1, data=madras2,id=id)
mTLV.lv.g = mm(thought~month + age + gender + age:month + gender:month,
lv.formula=~gender, t.formula=~1, data=madras2,id=id)
mTLV.t.g = mm(thought~month + age + gender + age:month + gender:month,
lv.formula=~1, t.formula=~gender, data=madras2,id=id)
mTLV.lvt.g = mm(thought~month + age + gender + age:month + gender:month,
t.formula=~gender,lv.formula=~gender,
data=madras2,id=id)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.