psm: execute propensity match and return match result object with...

View source: R/panel.R

psmR Documentation

execute propensity match and return match result object with match table

Description

execute propensity match and return match result object with match table

Usage

psm(
  sample,
  id,
  treat,
  pscore,
  ...,
  match_fun = nearest_match,
  result_handle_fun = NULL
)

Arguments

sample

a data.table object, one line per individual

id

name of a column used to identify individual

treat

name of a column used to identify treated status

pscore

name of a column for propensity score

args

a list contain element to be passed to MatchIt::matchid


liubianshi/lbs documentation built on Nov. 2, 2023, 11:06 a.m.