options_lme: Options control - Linear mixed model

Description Usage Arguments Value Examples

Description

Options control for running linear mixed model.

Usage

1
2
3
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’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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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)

dfConn documentation built on June 14, 2019, 1:02 a.m.