Learn R Programming

simcausal (version 0.5.7)

Define_sVar: Class for defining and evaluating user-specified summary measures (exprs_list)

Description

Evaluates and and stores arbitrary summary measure expressions. The expressions (exprs_list) are evaluated in the environment of the input data.frame.

Arguments

Format

An R6 class object.

Methods


Method new()

Usage

Define_sVar$new()


Method set.new.exprs()

Usage

Define_sVar$set.new.exprs(exprs_list)


Method eval.nodeforms()

Usage

Define_sVar$eval.nodeforms(cur.node, data.df)


Method eval.EFU()

Usage

Define_sVar$eval.EFU(cur.node, data.df)


Method df.names()

Usage

Define_sVar$df.names(data.df)


Method setnode.setenv()

Usage

Define_sVar$setnode.setenv(cur.node)


Method set.net()

Usage

Define_sVar$set.net(netind_cl)


Method clone()

The objects of this class are cloneable with this method.

Usage

Define_sVar$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

Following fields are created during initialization

  • nodes ...

  • subset_regs ...

  • sA_nms ...

  • sW_nms ...

  • Kmax ...