tmat: tmat

Description Usage Arguments Value

View source: R/intMob.R

Description

A function for computing transition matrices

Usage

1
tmat(Y, T, qcutoffs = c(0.25, 0.5, 0.75))

Arguments

Y

vector of outcomes

T

vector of treatments

qcutoffs

the quantiles where to draw the cutoff points in the transition matrix; default is at the quartiles

Value

A matrix containing values of the transition matrix. The columns contain different groups by value of the treatment, the rows contain different values for the outcome (it is ordered from bottom to top though as is standard for a transition matrix)


bcallaway11/qrme documentation built on June 30, 2021, 12:52 p.m.