gfks1_stat: Univariate GFKS statistics

Description Usage Arguments Value References Examples

View source: R/gfks1_stat.R

Description

Compute the GFKS statistics and identify its location for each column of x. This function and its use are discussed in Yu (2020).

Usage

1

Arguments

x

A matrix with length(z) rows giving the discretized covariates.

z

A vector whose ith coordinate is 1 for a treated unit and is 0 for a control.

Value

gfks

A vector of GFKS statistics for each discrete covariate.

where

A vector of locations that the GFKS statistics occur, i.e., the location of the maximum difference of the empirical distribution function of each discrete covariate in the treated and control groups.

References

Yu, R. (2020) Evaluating and Improving a Matched Comparison of Antidepressants and Bone Density. Under revision.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(optmatch)
data("SSRI")
attach(SSRI)
X<-cbind(female,black,education)
dist<-DiPs::maha_dense(z,X)
o<-DiPs::match(z, dist, SSRI)
M0<-o$data
Xm<-cbind(M0$female,M0$black,M0$education)
gfks1_stat(Xm,M0$z)
detach(SSRI)

met documentation built on Aug. 14, 2020, 5:07 p.m.

Related to gfks1_stat in met...