trajMS: trajMS

Description Usage Arguments

View source: R/trajMS.R

Description

Estimate the trajectory model with model averaging

Usage

1
trajMS(X, y, K, time_index, iterations, thin = 1, dispIter = 10)

Arguments

X:

Matrix, design matrix for. 1st column should be the id. Last columns of X correspond to time and polynomials of time.

y:

Vector, outcomes

K:

Integer, number of latent classes

time_index:

Integer, column of X corresponding to time

iterations:

Integer, number of MCMC iterations

thin:

Integer, store every 'thin' iteration

dispIter:

Integer, frequency of printing the iteration number


jtm508/bayestraj documentation built on May 5, 2020, 12:48 p.m.