Learn R Programming

MAGMA.R (version 1.0.3)

distance_estimator: distance_estimator

Description

estimates distance in MAGMA.

Usage

distance_estimator(data, means, variance, cores, inp = NULL)

Value

A matrix of distance for each case of each possible match.

Arguments

data

A matrix containing all possible combinations.

means

A matrix containing all row means of all possible matches.

variance

A numeric indicating the variance of the propensity scores.

cores

An integer defining the number of cores used for parallel computation.

inp

input parameter for parallel distance computation.

Author

Julian Urban

Details

This function is an inner function of MAGMA. It estimates the distance of all possible matches.