adjust_mkv_doy: adjust prob.in markov file to increase mean event size

Description Usage Arguments Value Examples

View source: R/markov_in_modifiers.R

Description

adjust prob.in markov file to increase mean event size

Usage

1
adjust_mkv_doy(mkv_doy, mean_mult = 1, adjust_sd = FALSE)

Arguments

mkv_doy

prob.in file from rSOILWAT2

mean_mult

how much mean event size should be multiplied by

adjust_sd

logical, whether to adjust the PPT_sd for a give DOY. This option is used so that a draw from a normal distribution with a new (larger) mean is no more/less likely draw a negative value

Value

mkv_doy file with frequency and mean event size adjusted to maintain same total precipitation

Examples

1
2
3
data <-data.frame(rSOILWAT2::dbW_weatherData_to_dataframe(rSOILWAT2::weatherData))
mkv_doy <- rSOILWAT2::dbW_estimate_WGen_coefs(data)[[2]]
adjust_mkv_doy(mkv_doy, mean_mult = 2)

MartinHoldrege/precipr documentation built on Nov. 4, 2021, 11:10 a.m.