get.covariate.array: Get the covariate arrays

Description Usage Arguments Value Author(s)

View source: R/design_setup.r

Description

Creates matrices with covariate values for all subjects for use in parameterized rate, initial dist., and emission matrices.

Usage

1
2
  get.covariate.array(design.matrix, cov.data,
    variable.entries = NULL)

Arguments

design.matrix

a matrix that codes the constants and variables for the parameterization with rows corresponding to theta and columns corresponding to betas

cov.data

a data frame with baseline covariate data for each individual

variable.entries

matrix with rows for each parameter corresponding to variable covariates, with the names for each.

Value

an array (dim=c(num.betas,num.thetas, num.subjects)) with covariates values for all subjects

Author(s)

Jane Lange


cthmm documentation built on May 2, 2019, 5:46 p.m.