Learn R Programming

spNetwork (version 0.2.1)

get_loo_values_simple: The exported function to calculate simple NKDE likelihood cv

Description

The exported function to calculate simple NKDE likelihood cv

Usage

get_loo_values_simple(
  neighbour_list,
  samples,
  sweights,
  events,
  weights,
  bws,
  kernel_name,
  line_list,
  max_depth
)

Arguments

neighbour_list

a List, giving for each node an IntegerVector with its neighbours

samples

a vector with the node index of the samples

sweights

a vector with the weight of each sample

events

a vector with the node index of the events

weights

a vector with the weights of the events

bws

a vector with the bandwidths

kernel_name

the name of the kernel function to use

line_list

a dataframe representing the edges of the network

max_depth

the maximum recursion depth

Value

a vector with the kernel values calculated for each event