Learn R Programming

dfConn (version 0.2.1)

options_lme: Options control - Linear mixed model

Description

Options control for running linear mixed model.

Usage

options_lme(effective_tp, num.scan, ntps.per.scan, output_dir = NULL,
  subjects = NULL, ci_level = 0.975, numIntKnots = 40, cores = 1,
  ngrid = 201, seed = 1114)

Arguments

effective_tp

integer, effective scan time points.

num.scan

integer, number of scan.

ntps.per.scan

integer, number of timepoints per scan.

output_dir

string, directory for storing output files.

subjects

character vector, names of subjects.

ci_level

numeric, level of confidence interval, with default 0.975.

numIntKnots

integer, number of knots for O<U+2019>Sullivan penalized splines, default is 40

cores

integer, number of cores to register while running parallel jobs.

ngrid

integer, number of grids.

seed

integer, random seed.

Value

A list of options

Examples

Run this code
# NOT RUN {
data("MLPB_output_median")

subjects <- c('subject1', 'subject2', 'subject3', 'subject4', 'subject5')

# In our demo data, each subject has a scan with a total of 750 time points
time.points <- c(1:105, 126:230, 251:355,
                 376:480, 501:605, 626:730) 
                 
                 
num.scan <- 6 # Each subject has 6 scans
ntps.per.scan <- 105 # Each scan has 105 time points

op <- options_lme(effective_tp = time.points, 
                 ntps.per.scan = ntps.per.scan,
                 subjects = subjects, 
                 num.scan = num.scan, 
                 cores = 5)
# }

Run the code above in your browser using DataLab