A longitudinal study comparing a new drug with a standard drug for treatment of 340 subjects suffering mental depression (Koch et al., 1977, Agresti, 2013). The patients are classified according to the severity of the initial diagnosis (mild and severe), the treatment type they received (standard and new drugs) and the responses on the depression assessment (normal and abnormal) at three occasions: after one week (R1), two (R2), and four weeks (R3) of treatment.
data(depression)
A data frame whose columns contain:
R3
A factor with levels: N
as normal, A
as abnormal
R2
A factor with levels: N
as normal, A
as abnormal
R1
A factor with levels: N
as normal, A
as abnormal
Treatment
A factor with levels: standard
, new drug
Diagnosis
A factor with levels: mild
, severe
Freq
A numeric vector of frequencies
Agresti A (2013) Categorical Data Analysis (third edition). Wiley.
Koch GG, Landis JR, Freeman JL, Freeman DH and Lehnen RG (1977) A general metodology for the analysis of experiments with repeated measurement of categorical data. Biometrics, 38, 563-595.
# NOT RUN {
data(depression)
# }
Run the code above in your browser using DataLab