Learn R Programming

pnmtrem (version 1.3)

pnmtrem1.sim.data1: A portion of a simulated dataset, for the baseline time point (t=1), from a first-order Probit-Normal Marginalized Transition Random Effects Models for 500 subjects with 4 follow-ups

Description

The dataset includes randomly generated bivariate longitudinal binary responses and an associated covariate which has a standard uniform distribution, U(0,1). The assumed parameters to generate the data are: $\beta^*=(\beta_0^*, \beta_1^*) = (-1, 1.9)$, $\lambda_j=(\lambda_1^*, \lambda_2^*)=(1, 1.07)$ and $b_{i1} \sim N(0,\sigma_1^2)$, $\sigma_1=0.7$. It is assumed that there are 500 subjects. The data include no missing value.

Usage

data(pnmtrem1.sim.data1)

Arguments

Format

A data frame with 1000 observations on the following 6 variables.
time
a numeric vector for the time information at which data is available
response
a numeric vector with the response information for which data is available
subject
a numeric vector for subject id
y
a numeric vector for bivariate longitudinal binary responses
ones
a numeric vector for which all the elements are 1
x
a numeric vector for the covariate

Details

When one carefully investigates the time, response and subject orders, s/he can easily understand the data structure which the model accepts. Baseline and later time points of the data may include different number of independent variables. Therefore, datasets for $t=1$ and $t \geq 2$ are presented in different data objects, pnmtrem1.sim.data1 and pnmtrem1.sim.data2, respectively.

Examples

Run this code
data(pnmtrem1.sim.data1)
head(pnmtrem1.sim.data1)
str(pnmtrem1.sim.data1)

Run the code above in your browser using DataLab