get_dropout: Get the amount of dropout

View source: R/missing_data.R

get_dropoutR Documentation

Get the amount of dropout

Description

Get the amount of dropout

Usage

get_dropout(object, ...)

## S3 method for class 'plcp_multi'
get_dropout(object, n = 1, ...)

Arguments

object

An object created by study_parameters

...

Optional arguments.

n

The n-th dataset to use for objects with multiple designs.

Value

A data.frame with the proportion of dropout per time point and treatment condition.

See Also

dropout_manual, dropout_weibull

Examples

p <- study_parameters(n1 = 11,
                      n2 = 5,
                      n3 = 6,
                      T_end = 10,
                      icc_pre_subject = 0.5,
                      icc_pre_cluster = 0,
                      var_ratio = 0.03,
                      icc_slope = 0.05,
                      dropout = dropout_weibull(proportion = 0.3, rate = 3),
                      cohend = -0.8)
get_dropout(p)

rpsychologist/powerlmm documentation built on May 11, 2023, 12:24 a.m.