View source: R/main_estimation.R
This function provides an alternative way to manually define parts of the propsensity score model with formula/strata and model controls. This function is for advanced users. It provides explicit and manual control over every single model fit, e.g., every strata of the exposure propensity score.
1 2 3 4 5 6 7 8 9 | define_single_regression(
OData,
regforms,
stratify = NULL,
models = NULL,
fit_method = stremrOptions("fit_method"),
fold_column = stremrOptions("fold_column"),
...
)
|
OData |
OData Input data object created by |
regforms |
Regression formula, only main terms are allowed. |
stratify |
Expression(s) for creating strata(s) (model will be fit separately on each strata) |
models |
Optional parameter specifying the models with |
fit_method |
Model selection approach. Can be |
fold_column |
The column name in the input data (ordered factor) that contains the fold IDs to be used as part of the validation sample.
Use the provided function |
... |
Additional parameters that will be passed down directly to the modeling function. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.