update.plcp: Update a 'study_parameters'-object with new settings

Description Usage Arguments Details Examples

Description

Update a study_parameters-object with new settings

Usage

1
2
## S3 method for class 'plcp'
update(object, ...)

Arguments

object

An object created by study_parameters

...

Any number of named arguments that should be updated

Details

Currently only the arguments used to construct the original object can be updated.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
p <- study_parameters(n1 = 11,
                      n2 = 10,
                      n3 = 3,
                      T_end = 10,
                      icc_pre_subject = 0.5,
                      icc_pre_cluster = 0,
                      var_ratio = 0.03,
                      icc_slope = 0.05,
                      cohend = -0.8)

p <- update(p, icc_slope = 0.1)
get_ICC_slope(p)

## Not run: 
# Using a "new" argument does not work (yet)
update(p, sigma_cluster_slope = 2)

## End(Not run)

powerlmm documentation built on May 2, 2019, 3:10 a.m.