Learn R Programming

met (version 0.1.0)

wilcoxon_stat: Wilcoxon rank statistics

Description

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

Usage

wilcoxon_stat(x,z)

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab