get_kernel_start_support: Fill in missing kernel, start or support given the supplied...

View source: R/kdensity_helpers.R

get_kernel_start_supportR Documentation

Fill in missing kernel, start or support given the supplied values.

Description

This function takes the supplied values of kernel, start, and support and fills in the non-supplied ones. It also handles inconsistencies, such as providing a support on (-Inf, Inf) but a kernel on (0, Inf).

Usage

get_kernel_start_support(kernel, start, support)

Arguments

kernel

Supplied kernel; string or list.

start

Supplied parametric start; string or list.

support

Binary vector.

Details

The kernel and start parameters are either strings or adhering to the kernel/start list structure. support is a numeric vector of length two.

Value

a list with members kernel, kernel_str, start, start_str, and support.


kdensity documentation built on April 4, 2025, 2:33 a.m.