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
#> new("standardGeneric", .Data = function (object, data, formula, 
#>     weights = NULL) 
#> standardGeneric("fit_outcome_model"), generic = "fit_outcome_model", 
#>     package = "TrialEmulation", group = list(), valueClass = character(0), 
#>     signature = c("object", "data", "formula", "weights"), default = NULL, 
#>     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))
#> <bytecode: 0x55d177bf4040>
#> <environment: 0x55d177c16b28>
#> 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"