Skip to contents

Longitudinal epilepsy data from morrisDietHeartPostscript1977;textualgalamm. This documentation is based on Chapter 14.2 of skrondalGeneralizedLatentVariable2004;textualgalamm, where the dataset is used. See also rabe-heskethCorrectingCovariateMeasurement2003;textualgalamm.

Usage

diet

Format

diet A data frame with 236 rows and 7 columns:

id

Subject ID.

age

Age (standardized).

bus

Dummy variable indicating whether the subject is a bus driver or banking staff.

item

Integer indicating whether the outcome is fiber intake at time 1 (item = 1), fiber intake at time 2 (item = 2), or coronary heart disease (item = 3).

y

Outcome.

chd

Dummy variable indicating whether y is an indicator for coronary heart disease, coded as 0/1.

fiber

Dummy variable indicating whether y is a fiber measurement at either timepoint 1 or 2.

fiber2

Dummy variable indicating whether y is a fiber measurement at timepoint 2.

References