expand_modelframe {coveffectsplot} | R Documentation |
Expand covariate values choices and reference values varying one at a time
Description
Expand covariate values choices and reference values varying one at a time
Usage
expand_modelframe(rv, covcol = "covname", ...)
Arguments
rv |
a data.frame with columns names of covariate(s) and values equal reference |
covcol |
column name for the covariate being varied |
... |
Arguments to be passed to methods |
Value
A data.frame with combination of covariates
Examples
reference.values <- data.frame(WT = 85, ALB = 45, SEX = 0)
covcomb <- expand_modelframe(
WT = c(56, 72, 98, 128), # P05, P25, P75, P95 # ref is P50
ALB = c(40, 50), # P05, P95 # ref is P50
SEX = c(1), # Reference is for SEX=0 (female)
rv = reference.values)
covcomb
[Package coveffectsplot version 1.0.5 Index]