SanityCheck: Check if user inputs are reasonable

View source: R/hlp_funs.R

SanityCheckR Documentation

Check if user inputs are reasonable

Description

Check if user inputs are reasonable

Usage

SanityCheck(date_vec, vi_vec, weights_vec, model, cred_int_level, init_values)

Arguments

date_vec

The date vector, be sure to convert the vector to "Date" format or use "yyyy-mm-dd" format string.

vi_vec

The vegetation index vector.

weights_vec

A numeric vector of same length as vi_vec specifying the weights for the supplied observations. Must be between 0 and 1, inclusive.

model

The model string.

cred_int_level

A scalar value from 0 to 1 (exclusive) that specifies the level for equal-tailed credible intervals of the estimated phenometrics. The default level is 0.9, generating ⁠90%⁠ credible intervals. The end points of these intervals define the upper and lower bounds for the estimated phenometrics.

init_values

Initial values for MCMC sampling. By default, it is assgined NULL. It could also be an object returned from the FitAvgModel() function that fits an averaged model or a numeric vector provided by the user.


MrJGao/Bayesian_LSP documentation built on Feb. 11, 2025, 9:36 a.m.