dynamichazard (version 0.6.2)

get_cloud_means: Compute Mean Estimates from Particle Cloud

Description

Computes the estimated means from a particle cloud.

Usage

get_cloud_means(object, ...)

# S3 method for PF_EM get_cloud_means(object, ...)

# S3 method for PF_clouds get_cloud_means(object, cov_index = NULL, type = c("smoothed_clouds", "forward_clouds", "backward_clouds"), ...)

Arguments

object

object with class PF_EM or PF_clouds.

...

named arguments to pass to the PF_clouds method.

cov_index

integer vector with indices of the random effect to include.

type

character with the type of cloud to compute means for.

Value

A matrix which rows are time indices and columns are random effect indices.