ng_pseudo_response {drape}R 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)

[Package drape version 0.0.1 Index]