nearest.neighbors.1d: Nearest neighbors in one dimension

Description Usage Arguments

View source: R/nearest.neighbors.1d.R

Description

This performs nearest neighbors estimation in one dimension. For higher dimensional analysis, this can be the propensity score.

Usage

1
nearest.neighbors.1d(Y, X, k = 1, space)

Arguments

Y

A vector of outcomes

X

A vector of predictors

k

The number of neighbors to use

space

The values at which to predict


samuelhigbee/myRtools documentation built on Sept. 25, 2021, 1:26 a.m.