CreateLVIndices: Format a data frame/matrix so that it is in the right format...

View source: R/CreateLVIndices.R

CreateLVIndicesR Documentation

Format a data frame/matrix so that it is in the right format for INLA

Description

Format a data frame/matrix so that it is in the right format for INLA

Usage

CreateLVIndices(dat, nLVs = 1)

Arguments

dat

data. A data frame or matrix

nLVs

The number of latent variables required

Value

A data frame with the same number of columns, but each row only has one value in it (the rest are NAs)

Examples

CreateLVIndices(matrix(1:10, ncol=5), nLVs=1)

oharar/LatentINLA documentation built on Sept. 13, 2023, 5:18 p.m.