expand_modelframe: Expand covariate values choices and reference values varying...

View source: R/expand_modelframe.R

expand_modelframeR 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

coveffectsplot documentation built on Sept. 18, 2023, 5:06 p.m.