A simulated 2-level dataset

Share:

Description

A simulated dataset to test 2-level functions, i.e. jomo2com and jomo2hr.

Usage

1
data(tldata)

Format

A data frame with 1000 observations on the following 6 variables.

measure.a

A numeric variable with some measure of interest (unspecified). This is partially observed.

measure.b

A numeric variable with some measure of interest (unspecified). This is fully observed.

measure.a2

A numeric variable with some level-2 measure of interest (unspecified). This is partially observed.

previous.events

A binary variable indicating if a patient has previous history of (unspecified) events. Patially observed.

group

A 3-category variable indicating to which group each patient belongs. This is partially observed.

big.city

A binary variable indicating if each city has more than 100000 inhabitants. Patially observed.

region

A 3-category variable indicating to which region each city belongs. This is fully observed.

city

The cluster indicator vector. 200 cities are indexed 0 to 199.

id

The id for each individual within each city.

Details

These are not real data, they are simulated to illustrate the use of the main functions of the package.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.