job_satisfaction {CMHNPA} | R Documentation |
Job satisfaction data based on income and gender.
data(job_satisfaction)
A data frame with 104 rows and three columns.
income level categorised
the level of job satisfaction for the respondent
gender of the respondent
The data relate job satisfaction and income in males and females. Gender induces two strata; the treatments are income with categories scored 3, 10, 20 and 35 while the response is job satisfaction with categories scored 1, 3, 4, and 5.
Agresti (2003)
Agresti, A. (2003). Categorical Data Analysis. Hoboken: John Wiley & Sons.
attach(job_satisfaction)
a_ij = matrix(rep(c(3,10,20,35),2),nrow=4)
b_hj = matrix(rep(c(1,3,4,5),2),nrow=4)
unconditional_CMH(treatment = income, response = satisfaction,
strata = gender, U = 2, V = 2, a_ij = a_ij,
b_hj = b_hj)