importData: Import data, define nodes (columns) and define input data R6...

Description Usage Arguments Value

View source: R/utility_funs.R

Description

Import data, define nodes (columns) and define input data R6 object

Usage

1
2
importData(data, ID = "Subject_ID", t_name = "time_period", covars,
  OUTCOME = "Y", verbose = getOption("gridisl.verbose"))

Arguments

data

Input dataset, can be a data.frame or a data.table.

ID

A character string name of the column that contains the unique subject identifiers.

t_name

A character string name of the column with integer-valued measurement time-points (in days, weeks, months, etc).

covars

Names of predictors (covariates) in the data.

OUTCOME

Character name of the column containing outcomes.

verbose

Set to TRUE to print messages on status and information to the console. Turn this on by default using options(gridisl.verbose=TRUE).

Value

An R6 object that contains the input data. This can be passed as an argument to get_fit function.


osofr/gridisl documentation built on May 24, 2019, 4:55 p.m.