Learn R Programming

R2MLwiN (version 0.8-9)

mmmec: EC data on UV radiation exposure & malignant melanoma.

Description

EC data on UV radiation exposure & malignant melanoma, consisting of 354 counties across 79 regions across 9 nations.

Usage

mmmec

Arguments

Format

A data frame with 354 observations on the following variables:

nation

Nation ID: a factor with levels corresponding to each country.

region

Region (within-nation) ID.

county

County (within-region) ID.

obs

Number of male deaths due to malignant melanoma between 1971 and 1980.

exp

Expected number of deaths - proportional to county population.

cons

Constant (=1).

uvbi

County-level measurement of UV B radiation, centered on the mean.

Details

The mmmec dataset is one of the sample datasets provided with the multilevel-modelling software package MLwiN (Rasbash et al., 2009). Further information can be found in Langford et al. (1998) and Browne (2012).

See Also

See mlmRev package for an alternative format of the same dataset, with fewer variables.

Examples

Run this code

if (FALSE) {

data(mmmec, package = "R2MLwiN")

(mymodel3 <- runMLwiN(log(obs) ~ 1 + uvbi + offset(log(exp)) + (1 | nation) + (1 | region), 
 D = "Poisson", estoptions = list(EstM = 1), data = mmmec))

}

Run the code above in your browser using DataLab