definemissingstatus: Utility function to generate missing status variables in...

Description Usage Arguments Value Examples

Description

Utility function to generate missing status variables in longitudinal data with dropout and/or intermittent missingness.

Usage

1

Arguments

data

the name of the panel dataset in the long format with each row denoting a subject-visit observation for ALL the planned visits, regardless of being missed or not. When a subject is lost to follow up, the data set must include the observation at the first time of being lost to follow up.

id

the name of the level-2 clustering variable.

time

the name of the variable denoting the time of the visit. Can set time=NULL if data is already sorted by id and time within id.

y

the name of the outcome variable of the interest that is subject to missingness.

Value

a dataset with the following three new variables added:

Examples

1
qolefnew <- definemissingstatus(qolef, id=id, time=time, y=y)

isni documentation built on Aug. 23, 2021, 9:06 a.m.