get_mse: Obtain MSE, bias-squared and variance of posterior from nplcm...

Description Usage Arguments Value

View source: R/get-mse.R

Description

The result is equivalent to Euclidean-type calculation after the compositional vector (e.g., etiologic fraction) is centered-logratio tranformed. For simulation only.

Usage

1
get_mse(DIR_NPLCM, truth = NULL, check.truth = FALSE)

Arguments

DIR_NPLCM

File path where Bayesian results are stored

truth

Default is NULL. True etiologic fraction vector (must sum to 1) used to generate data

check.truth

Default is FALSE. If truth is a non-null vector, it asks the function to check the user specified truth against the one used in the actual simulation.

Value

a vector of (MSE, bias-squared, variance,truth)


zhenkewu/nplcm documentation built on May 4, 2019, 10:19 p.m.