Description Usage Arguments Details Value Author(s) References See Also Examples
This tool function allow to apply a function along some index and on a subset
of elements of the XPtr
object. Is the counterpart of apply
for objects fo class matrix
.
1 |
d |
an object of class |
idx |
a vector of integers, the indexes of the apply |
sub |
a vector of integers, the indexes of the subest |
f |
a function to be evaluated in the |
The object d
is like a dist
object, which is one-dimensional but
usually associated to a symmetrix matrix M
with 0's on the diagonal.
This function allows to apply a function f
on d
as if it was
applied this way on the matrix M
: apply(M[idx,sub],1,f)
.
val |
an invisible object of type |
S.M. Iacus
Iacus, S.M., Porro, G. (2009) Random Recursive Partitioning: a matching method for the estimation of the average treatment effect, Journal of Applied Econometrics, 24, 163-185.
Iacus, S.M., Porro, G. (2007) Missing data imputation, matching and other applications of random recursive partitioning, Computational Statistics and Data Analysis, 52, 2, 773-789.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.