Learn R Programming

powerlmm (version 0.4.0)

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

Description

Update a study_parameters-object with new settings

Usage

# S3 method for 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab