| ahs | R Documentation |
The Australian Health Survey (AHS) was used by Bonat and Jorgensen (2016) as an example of multivariate count regression modeling. The dataset contains five count response variables related to health system usage and nine covariates related to social conditions in Australia for the years 1987-88.
data(ahs)
A data.frame with 5190 observations and 15 variables:
sexFactor with levels male and female.
ageRespondent's age in years divided by 100.
incomeRespondent's annual income in Australian dollars divided by 1000.
levyplusFactor indicating coverage by private health insurance for private patients in public hospital with doctor of choice (1) or otherwise (0).
freepoorFactor indicating government coverage due to low income, recent immigration, or unemployment (1) or otherwise (0).
freerepaFactor indicating government coverage due to old-age/disability pension, veteran status, or family of deceased veteran (1) or otherwise (0).
illnesNumber of illnesses in the past two weeks, capped at 5.
actdaysNumber of days of reduced activity in the past two weeks due to illness or injury.
hscoreGeneral health questionnaire score (Goldberg's method); higher scores indicate poorer health.
chcondFactor with levels: limited (chronic condition with activity limitation), nonlimited (chronic condition without limitation), otherwise (reference level).
NdocNumber of consultations with a doctor or specialist (response variable).
NndocNumber of consultations with health professionals (response variable).
NadmNumber of admissions to hospital, psychiatric hospital, nursing, or convalescence home in the past 12 months (response variable).
NhospNumber of nights in a hospital during the most recent admission.
NmedTotal number of prescribed and non-prescribed medications used in the past two days.
Deb, P. and Trivedi, P. K. (1997) "Demand for medical care by the elderly: A finite mixture approach." Journal of Applied Econometrics, 12(3):313–336.
Bonat, W. H. and Jorgensen, B. (2016) "Multivariate covariance generalized linear models." Journal of the Royal Statistical Society: Series C, 65:649–675.
library(mcglm)
data(ahs, package = "mcglm")
form1 <- Ndoc ~ income + age
form2 <- Nndoc ~ income + age
Z0 <- mc_id(ahs)
fit.ahs <- mcglm(linear_pred = c(form1, form2),
matrix_pred = list(Z0, Z0),
link = c("log", "log"),
variance = c("poisson_tweedie", "poisson_tweedie"),
data = ahs)
summary(fit.ahs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.