nkde_get_loo_values {spNetwork} | R Documentation |
The exposed function to calculate NKDE likelihood cv
Description
The exposed function to calculate NKDE likelihood cv (INTERNAL)
Usage
nkde_get_loo_values(
method,
neighbour_list,
sel_events,
sel_events_wid,
events,
events_wid,
weights,
bws_net,
kernel_name,
line_list,
max_depth,
cvl
)
Arguments
method |
a string, one of "simple", "continuous", "discontinuous" |
neighbour_list |
a List, giving for each node an IntegerVector with its neighbours |
sel_events |
a Numeric vector indicating the selected events (id of nodes) |
sel_events_wid |
a Numeric Vector indicating the unique if of the selected events |
events |
a NumericVector indicating the nodes in the graph being events |
events_wid |
a NumericVector indicating the unique id of all the events |
weights |
a matrix with the weights associated with each event (row) for each bws_net (cols). |
bws_net |
an arma::mat with the network bandwidths to consider for each event |
kernel_name |
a string with the name of the kernel to use |
line_list |
a DataFrame describing the lines |
max_depth |
the maximum recursion depth |
cvl |
a boolean indicating if the Cronie (TRUE) or CV likelihood (FALSE) must be used |
Value
a vector with the CV score for each bandwidth and the densities if required
Examples
# no example provided, this is an internal function