estimate_hat_vals: Estimate hat (fitted) values

View source: R/estimate_hat_vals.R

estimate_hat_valsR Documentation

Estimate hat (fitted) values

Description

Estimates the fitted values based on bandwidth value

Usage

estimate_hat_vals(bw, matched_w, w_vals)

Arguments

bw

The bandwidth value.

matched_w

A vector of continuous exposure variable in the matched set.

w_vals

A vector of values that you want to calculate the values of the ERF at.

Value

Returns fitted values, or the prediction made by the model for each observation.


wxwx1993/GPSmatching documentation built on March 1, 2023, 9:32 p.m.