Skip to contents

Method for fitting outcome models

Usage

fit_outcome_model(object, data, formula, weights = NULL)

Arguments

object

A te_outcome_fitter object

data

data.frame containing outcomes and covariates as defined in formula.

formula

formula describing the model.

weights

numeric vector of weights.

Value

An object of class te_outcome_fitted

Examples

fit_outcome_model
#> function(object, data, formula, weights = NULL) standardGeneric("fit_outcome_model")
#> <environment: 0x55c67427c1e0>
#> attr(,"generic")
#> [1] "fit_outcome_model"
#> attr(,"generic")attr(,"package")
#> [1] "TrialEmulation"
#> attr(,"package")
#> [1] "TrialEmulation"
#> attr(,"group")
#> list()
#> attr(,"valueClass")
#> character(0)
#> attr(,"signature")
#> [1] "object"  "data"    "formula" "weights"
#> attr(,"default")
#> `\001NULL\001`
#> attr(,"skeleton")
#> (function (object, data, formula, weights = NULL) 
#> stop(gettextf("invalid call in method dispatch to '%s' (no default method)", 
#>     "fit_outcome_model"), domain = NA))(object, data, formula, 
#>     weights)
#> attr(,"class")
#> [1] "standardGeneric"
#> attr(,"class")attr(,"package")
#> [1] "methods"