Stratified_cfg {tidyhte} | R Documentation |
Configuration for a Stratification Estimator
Description
Stratified_cfg
is a configuration class for stratifying a covariate
and calculating statistics within each cell.
Super class
tidyhte::Model_cfg
-> Stratified_cfg
Public fields
model_class
The class of the model, required for all classes which inherit from
Model_cfg
.covariate
The name of the column in the dataset which corresponds to the covariate on which to stratify.
Methods
Public methods
Method new()
Create a new Stratified_cfg
object with specified number of evaluation points.
Usage
Stratified_cfg$new(covariate)
Arguments
covariate
The name of the column in the dataset which corresponds to the covariate on which to stratify.
Returns
A new Stratified_cfg
object.
Examples
Stratified_cfg$new(covariate = "test_covariate")
Method clone()
The objects of this class are cloneable with this method.
Usage
Stratified_cfg$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Examples
## ------------------------------------------------
## Method `Stratified_cfg$new`
## ------------------------------------------------
Stratified_cfg$new(covariate = "test_covariate")
[Package tidyhte version 1.0.2 Index]