matchatr
  1. Reference
  2. print.matchatr_fit
  • 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 fit
    • Description
    • Usage
    • Arguments
    • Value
    • See Also
    • Examples

Code Links

  1. Reference
  2. print.matchatr_fit

Print a matchatr fit

Description

Displays a compact summary of a matchatr_fit object: the sampling design, the resolved estimator and engine, the outcome / exposure / confounder roles, and the case / control counts.

Usage

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

Arguments

x A matchatr_fit object.
… Unused; present for S3 consistency.

Value

Invisibly returns x.

See Also

matcha()

Examples

library("matchatr")

df <- data.frame(case = c(1, 0, 1, 0), x = c(1, 0, 1, 0))
print(matcha(df, outcome = "case", exposure = "x", design = unmatched_cc()))
<matchatr_fit>
 Design:     Unmatched case-control
 Estimator:  logistic  (engine: glm_logistic)
 Outcome:    case
 Exposure:   x
 Confounders: none
 N:          4  (cases: 2, controls: 2)