invariants: generate sfpca models with different parameters

Description Usage Arguments Value Examples

View source: R/invariants.R

Description

generate sfpca models with different parameters

Usage

1
invariants(data, unique_subject_id, time_name, var_name = NULL)

Arguments

data:

A data frame with subject id, time and variables

unique_subject_id:

A column name corresponding to unique subject id in the data (string)

time_name:

A column name corresponding to time variable

var_name:

A vector of interested variable name, default is null

Value

A vector of column names in data that do not change with time variable

Examples

1
2
data("ECAM")
invariants(ECAM, 'studyid', 'month_of_life')

biocore/bayestime documentation built on Nov. 15, 2020, 5:40 p.m.