find_matches | R Documentation |
Find matches on all outcomes shown on the active chart
find_matches(
target,
con,
dnr,
ynames,
nmatch = 5L,
period,
user_model = 2L,
exact_sex = FALSE,
exact_ga = FALSE,
break_ties = TRUE
)
target |
A list with elements |
con |
A connection on which the donor data reside. The
default ( |
dnr |
A string with the name of the donor data
(currently available are |
ynames |
A vector with the names of the response variables
for which matches are sought, e.g. |
nmatch |
Integer. Number of matches needed. When
|
period |
A vector of length 2 with left and right ages
(decimal age). If |
user_model |
Model number (1-4), indicating type of model the user wants. See details. |
exact_sex |
A logical indicating whether sex should be matched exactly |
exact_ga |
A logical indicating whether gestational age should be matched exactly |
break_ties |
A logical indicating whether ties should broken
randomly. The default ( |
List with components with names ynames
. Each
component is a vector of integers representing the id's of the
matches cases from donor
. Returns integer(0)
if no
matches are found.
curvematching::calculate_matches()
,
curvematching::extract_matches()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.