Learn R Programming

lllcrc (version 1.2)

smooth.patterns: Local averaging for LLLMs

Description

A nearest-neighbors procedure is used in conjunction with the Epanechnikov kernel to define a kernel smooth of multinomial outcomes across the covariate space

Usage

smooth.patterns(dat, kfrac, bw)

Arguments

dat
The capture-recapture data in the form that is returned by formatdata or micro.post.stratify.
kfrac
The approximate fraction of the data that is included in the support of the kernel for the local averages.
bw
A matrix a single column, with rownames that match the covariate names in dat. The values in the column are scalars that are used in constructing distances between covariate vectors. Raw differences are divided by the corresponding scalars before being squared in the context of a Euclidean metric.

Value

A list containing the original data (dat), the smoothed data (hpi), and the effective sample sizes (ess) for each local average, or row, in the smoothed data

Details

See Kurtz 2013, Chapter on multiple sclerosis

References

Kurtz 2013