control_test: Run falsification test

View source: R/inference.R

control_testR Documentation

Run falsification test

Description

Run falsification test

Usage

control_test(control_data, control_variables, outcome_model = NA,
  outcome_variable, time_variable, trajectory_id, time_points,
  rand_reps = 100, caliper = 0.2, reps = 1000)

Arguments

control_data

Dataset with only control units

control_variables

Vector of variables to match on

outcome_model

Outcome model, if bias correction is used

outcome_variable

Name of the outcome variable in the dataset

time_variable

Name of the time variable in the dataset

trajectory_id

Name of the column that identifies trajectories

time_points

Vector of two time points to run falsification test on

rand_reps

Number of reps to randomly divide dataset

caliper

Matching caliper

reps

Number of permutation test reps

Value

List with p-value from test and mahalanobis distance of dataset for random split


jgellar/GroupMatch documentation built on Nov. 8, 2022, 10:48 p.m.