wilcoxon_stat: Wilcoxon rank statistics

Description Usage Arguments Value Examples

View source: R/wilcoxon_stat.R

Description

Compute the Wilcoxon rank statistics for each individual covariate in x.

Usage

1

Arguments

x

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

z

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

Value

A vector of Wilcoxon rank statistics for each column of x.

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)
wilcoxon_stat(Xm,M0$z)
detach(SSRI)

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

Related to wilcoxon_stat in met...