matchatr
  1. Reference
  2. print.matchatr_result
  • Home
  • Getting started
    • Introduction
  • Classical odds ratios
    • Unmatched case-control odds ratios
    • Matched case-control odds ratios
    • Multiple case / control groups
  • Risk-set designs
    • Nested case-control
  • Reference
    • case_cohort
    • contrast
    • counter_matched
    • matcha
    • matched_cc
    • nested_cc
    • print.matchatr_design
    • print.matchatr_fit
    • print.matchatr_homogeneity
    • print.matchatr_result
    • sample_ncc
    • summary.matchatr_fit
    • test_homogeneity
    • tidy.matchatr_fit
    • tidy.matchatr_homogeneity
    • tidy.matchatr_result
    • two_phase
    • unmatched_cc
  • News
  • License
  • Citation

On this page

  • Print a matchatr contrast result
    • Description
    • Usage
    • Arguments
    • Value
    • See Also
    • Examples

Code Links

  1. Reference
  2. print.matchatr_result

Print a matchatr contrast result

Description

Displays a compact summary of a matchatr_result: the estimator and engine that produced it, the estimand and contrast scale, the confidence-interval method and sample size, followed by the contrasts table.

Usage

## S3 method for class 'matchatr_result'
print(x, ...)

Arguments

x A matchatr_result object returned by contrast().
… Unused; present for S3 consistency.

Value

Invisibly returns x.

See Also

contrast()

Examples

library("matchatr")

set.seed(1)
df <- data.frame(case = rep(c(1, 0), each = 100), x = rbinom(200, 1, 0.4))
fit <- matcha(df, outcome = "case", exposure = "x", design = unmatched_cc())
print(contrast(fit, type = "or"))
<matchatr_result>
 Estimator:  logistic  (engine: glm_logistic)
 Estimand:   conditional OR
 Contrast:   Odds ratio
 CI method:  model
 N:          200

Contrasts:
   comparison estimate       se  ci_lower ci_upper
       <char>    <num>    <num>     <num>    <num>
1:          x 1.131579 0.324955 0.6445338 1.986662