set_optDiscRD: Manipulation Global Options for discRD

Description Usage Arguments Details Examples

View source: R/optDiscRD.r

Description

Manipulation Global Options for discRD

Usage

1
2
3
set_optDiscRD(basemod, covmod, ...)

clear_optDiscRD()

Arguments

basemod

two-sided formula with outcome variables on lhs and running variable on rhs

covmod

(list of) one-sided formulas with covariates used in regression analysis on rhs.

...

Other global options as follows:

  • discRD.cutoff: a numeric value of cutoff point.

  • discRD.assign: a string of assignment rule. If "greater", treatment is determined by 1*(running >= cutoff). If "smaller", treatment is determined by 1*(running <= cutoff).

  • discRD.plot_family: The name of the font family used to output the figure with ggplot2.

  • discRD.table_output: String of output format with modelsummary. Default is "kableExtra".

  • discRD.table_fontsize: The font size in the table output by kableExtra and flextable used through modelsummary.

Details

If set_optDiscRD passes empty arguments, return current options. clear_optDiscRD reset the global option value to the initial one.

Examples

1
2
3
4
5
6
## Not run: 
set_optDiscRD(y1 + y2 ~ run, discRD.cutoff = 45)
clear_optDiscRD()
set_optDiscRD()

## End(Not run)

KatoPachi/discreteRD documentation built on Feb. 24, 2022, 12:32 a.m.