Learn R Programming

topolow (version 1.0.0)

weighted_kde: Weighted Kernel Density Estimation

Description

Performs weighted kernel density estimation for univariate data. Uses parallel processing for efficiency. Useful for analyzing parameter distributions with importance weights.

Usage

weighted_kde(x, weights, n = 512, from = min(x), to = max(x))

Value

List containing:

x

Vector of evaluation points

y

Vector of density estimates

Arguments

x

Numeric vector of samples

weights

Numeric vector of weights

n

Integer number of evaluation points

from, to

Numeric range for evaluation points