BinDat: R6 class for storing the design matrix and binary outcome for...

Description Usage Format Details Methods Active Bindings

Description

This R6 class can request, store and manage the design matrix Xmat, as well as the binary outcome Bin for the logistic regression P(Bin|Xmat). Can also be used for converting data in wide format to long when requested, e.g., when pooling across binary indicators (fitting one pooled logistic regression model for several indicators) The class has methods that perform queries to data storage R6 class DatNet.sWsA to get appropriate data columns & row subsets

Usage

1

Format

An R6Class generator object

Details

Methods

new(reg)

Uses reg R6 RegressionClass object to instantiate a new storage container for a design matrix and binary outcome.

show()

Print information on outcome and predictor names used in this regression model

newdata()

...

define.subset_idx(...)

...

setdata()

...

setdata.long()

...

Active Bindings

emptydata

...

emptyY

...

emptySubset_idx

...

emptyN

...

getXmat

...

getY

...


osofr/tmlenet documentation built on May 24, 2019, 4:58 p.m.