bw_simple {lg}R Documentation

Create simple bandwidth object

Description

Create a simple bandwidths object for local Gaussian correlations

Usage

bw_simple(joint = 1, marg = NA, x = NULL, dim = NULL)

Arguments

joint

Joint bandwidth

marg

Marginal bandwidths

x

The data set

dim

The number of variables

Details

This function provides a quick way of producing a bandwidth object that may be used in the lg_main()-function. The user must specify a bandwidth joint that is used for all joint bandwidths, and the user may specify marg, a marginal bandwidth that will be used for all marginal bandwidths. This is needed if the subsequent analyses use est_method = "5par_marginals_fixed".

The function must know the dimension of the problem, which is achieved by either supplying the data set x or the number of variables dim.

Examples


  bw_object <- bw_simple(joint = 1, marg = 1, dim = 3)


[Package lg version 0.4.1 Index]