Learn R Programming

doudpackage (version 2.1.0)

initialize,VarGroup-method: S4 class initialization function

Description

Initialization function for VarGroup initialize,VarGroup-method()

Usage

# S4 method for VarGroup
initialize(
  .Object,
  x,
  group_var,
  pvalue,
  parsed_name,
  value,
  missing.value,
  missing.value.name
)

Value

VarGroup object

Arguments

.Object

Object to be initialized

x

A Var object

group_var

The subgroup for which proportions, mean/sd were calculated and missing values

pvalue

The calculated pvalue

parsed_name

The name of the variable parsed with the n (%), mean (SD)

value

The values calculated parsed

missing.value

Missing values numbers and proportions n (%)

missing.value.name

Missing values concatenate with the level of the variable if it factor