guess_initial_parameters {cyclomort} | R Documentation |
Produce initial parameter estimates based on mortality data
Description
Uses a basic flexsurvreg exponential mortality model to find the average hazard value, and fits a mixed normal distribution model to estimate the peaks, season durations, and weight distributions for the model. These estimates are not meant to be fully accurate but instead are meant to be good initial guesses for the fit_cyclomort function.
Usage
guess_initial_parameters(x, n, null_fits)
Arguments
x |
|
n |
expected number of mortality seasons within a period |
null_fits |
original estimate for mortality rate assuming constant hazard function |
Value
a named vector of guesses for parameter values, used to initialize the fitting process
[Package cyclomort version 1.0.2 Index]