BinOutModel: R6 class for fitting and making predictions for a single...

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

  • cont.sVar.flag - Is the original outcome variable continuous?

  • bw.j - Bin width (interval length) for an outcome that is a bin indicator of a discretized continous outcome.

  • glmfitclass - Controls which package will be used for performing model fits (glm or speedglm).

  • bindat - Pointer to an instance of BinDat class that contains the data.

Methods

new(reg)

Uses reg R6 RegressionClass object to instantiate a new model for a logistic regression with binary outcome.

show()

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

fit()

...

copy.fit()

...

predict()

...

copy.predict()

...

predictAeqa()

...

Active Bindings

getoutvarnm

...

getoutvarval

...

getsubset

...

getprobA1

...

getfit

...

wipe.alldat

...



Search within the tmlenet package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.