construct.init.setup: Get an initial distribution design setup object

Description Usage Arguments Value Author(s)

View source: R/design_setup.r

Description

Get an initial distribution design setup object

Usage

1
2
3
4
5
  construct.init.setup(num.states = NULL, states = NULL,
    ref = 1, fixed.dist = NULL, design.matrix = NULL,
    covariate.array = NULL, deriv.array = NULL,
    param.values = NULL, param.types = NULL,
    variable.predictors = NULL)

Arguments

num.states

number of hidden states

states

vector of index of states with non-zero initial probabilities, not including ref state

ref

index of reference state

fixed.dist

option fixed initial distribution (same for all subjects)

design.matrix

array of dim(num beta parameters, initial states) that encode the variables/constants used in linear predictors of log(emission_ij). Variables are named, and constants are entered as constants. The rows correspond to the transitions in the states entry.

covariate.array

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

deriv.array
param.values

inital or fixed values of beta parameters

param.types

a vector of length(num.beta.parameters), with entries=0 if parameter is free, 1 if fixed at param.value.

variable.predictors

matrix with columns "i" and "j" that encode the variable predictors in the design.matrix

Value

init.setup object

Author(s)

Jane Lange


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