trim_data: Dummy function to conduct no trimming at all.

Description Usage Arguments Value

View source: R/01_prepare_data.R

Description

.. content for details ..

Usage

1
2
trim_data(data, trim_method_name, thres, A_name, ps0_name, ps1_name,
  ps2_name, levels)

Arguments

data

data_frame

trim_method_name

Function used for trimming that takes A, ps0, ps1, ps2, levels, and thres as arguments. Either one of the string: none, crump, sturmer, walker.

thres

Threshold for the trimming strategy.

A_name

Treatment indicator name in data.

ps0_name

Name of the column in data for the PS for the first level.

ps1_name

Name of the column in data for the PS for the second level.

ps2_name

Name of the column in data for the PS for the third level.

levels

Character vector holding three elements corresponding to levels in A

Value

trimmed data_frame with fewer rows


kaz-yos/trim3 documentation built on May 3, 2019, 7:40 p.m.