ng_pseudo_response: Generate pseudo responses as in Ng 1994 to enable univariate...

View source: R/score.R

ng_pseudo_responseR Documentation

Generate pseudo responses as in Ng 1994 to enable univariate score estimation by standard smoothing spline regression.

Description

Pseudo responses should be regarded as a computational tool, not as an estimate of the score itself.

Usage

ng_pseudo_response(x, w = rep(1, length(x)))

Arguments

x

vector of covariates.

w

vector of weights.

Value

A vector of score estimates.

Examples

x <- seq(-3,3, length.out=50)
ng_pseudo_response(x)

drape documentation built on April 3, 2025, 9:23 p.m.