expand_matrix: Longitudinally expand a matrix of single observations by...

Description Usage Arguments Examples

Description

An internal function not intended for the user. Given a matrix of single observations for a cluster, repeats each cluster's entry in each .obs times.

Usage

1
expand_matrix(.matrix, .obs)

Arguments

.matrix

The matrix of observations to be expanded.

.obs

The number of observations to generate per cluster.

Examples

1
2
mat = matrix( seq(1:10), nrow=2, byrow=FALSE)
expand_matrix(mat, 4)

SimTimeVar documentation built on May 2, 2019, 8:31 a.m.