Learn R Programming

psborrow2 (version 0.0.4.0)

cont_var: Create continuous covariate

Description

Create an object of class SimVarCont to hold mean values of of continuous variables specified in a simulation study.

Usage

cont_var(mu_internal, mu_external)

Value

Object of class SimVarCont.

Arguments

mu_internal

numeric. Mean covariate value for the internal arms.

mu_external

numeric. Mean covariate value for the external arm.

See Also

Other simvar: bin_var()

Examples

Run this code
cv1 <- cont_var(0.5, 1)
cv2 <- cont_var(10, 10)

Run the code above in your browser using DataLab