LLW {condSURV}R Documentation

Local linear weights.

Description

Computes local linear weights based on Kernel smoothing.

Usage

LLW(x, kernel = "gaussian", bw, t1)

Arguments

x

Covariate values for obtaining estimates for the conditional probabilities. If missing, unconditioned probabilities will be computed.

kernel

A character string specifying the desired kernel. See details below for possible options. Defaults to "gaussian" where the gaussian density kernel will be used.

bw

A single numeric value to compute a kernel density bandwidth.

t1

Covariate value to compute the weight at.

Details

Possible options for argument window are "gaussian", "epanechnikov", "tricube", "boxcar", "triangular", "quartic" or "cosine".

Value

A vector with local linear weights.

Author(s)

Luis Meira-Machado and Marta Sestelo

See Also

NWW

Examples


LLW(x = colonCS$age, bw = 3, t1 = 60)


[Package condSURV version 2.0.4 Index]