lwd_refinement: lwd_refinement master function that performs refinement with...

View source: R/listwise_delete.R

lwd_refinementR Documentation

lwd_refinement master function that performs refinement with listwise deletion = TRUE

Description

lwd_refinement master function that performs refinement with listwise deletion = TRUE

Usage

lwd_refinement(
  msets,
  global.data,
  treated.ts,
  treated.ids,
  lag,
  time.id,
  unit.id,
  lead,
  refinement.method,
  treatment,
  size.match,
  match.missing,
  covs.formula,
  verbose,
  outcome.var,
  e.sets,
  use.diag.covmat
)

Arguments

msets
global.data

data.frame. needs to be fully prepped/parsed data set that is internally balanced, full of NAs likely

treated.ts

vector of the times of treatment for treated observations

treated.ids

vector of unit identifiers of treated observations

lag
time.id

string specifying

unit.id
lead

vector of lead values

refinement.method

string specifying refinement method

treatment

string specifying treatment variable

size.match

maximum number of units to give non-zero weight to when using matching refinement method

match.missing

logical. indicates whether or not to allow the package to match units on missingness in treatment history

covs.formula

see PanelMatch documentation for descriptions

verbose

see PanelMatch documentation for descriptions

outcome.var

string specifying outcome variable

e.sets

empty sets (treated observations with no matched controls)

use.diag.covmat

see PanelMatch documentation for descriptions

Value

matched.set object with refined matched sets.


PanelMatch documentation built on June 22, 2024, 10:32 a.m.