summary.ov: summary.ov

Description Usage Arguments Value Examples

View source: R/summary.ov.R

Description

Produces summary information that contains a recommendation for reporting the sensitivity analyses

Usage

1
2
## S3 method for class 'ov'
summary(object, model_results, sig_level = 0.05, progress = TRUE, ...)

Arguments

object

The object returned from OVtool::ov_simgrid()

model_results

The object returned from OVtool::outcome_model()

sig_level

The alpha level with default 0.05

progress

Whether or not the function progress should print to screen. The default value is TRUE. If the user does not want the output to print to screen, they should set to FALSE.

...

Additional arguments.

Value

This function will print a recommendation for reporting the sensitivity analyses.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
data(sud)
sud = data.frame(sud)
sud$treat = ifelse(sud$treat == "A", 1, 0)
sud$wts = sample(seq(1, 10, by=.01), size=nrow(sud), replace = TRUE)
outcome_mod = outcome_model(data = sud,
                            weights = "wts",
                            treatment = "treat",
                            outcome = "eps7p_6",
                            model_covariates = c("sfs8p_0", "eps7p_0"),
                            estimand = "ATE")

ovtool_results = ov_sim(model_results=outcome_mod,
                        plot_covariates=c("sfs8p_0"),
                        es_grid = NULL,
                        rho_grid = NULL,
                        n_reps = 2,
                        progress=FALSE)
summary = summary.ov(object = ovtool_results,
                     model_results = outcome_mod,
                     sig_level=0.05,
                     progress = FALSE)

OVtool documentation built on Nov. 2, 2021, 9:07 a.m.