powered by
A sample of psychiatry patients were cross-classified by their diagnosis and whether a drug treatment was prescribed.
data(drugpsy)
A data frame with 10 observations on the following 3 variables.
y
the number of patients
diagnosis
a factor with levels Affective.Disorder Neurosis Personality.Disorder Schizophrenia Special.Symptoms
Affective.Disorder
Neurosis
Personality.Disorder
Schizophrenia
Special.Symptoms
drug
a factor with levels no yes
no
yes
Agresti A. (1990) "Categorical Data Analysis" Wiley