fit_norm_dist: Fit Parametric Distribution and test

Description Usage Arguments Value Author(s) See Also

View source: R/normalize.R

Description

This function fits a distribution to a time series of monthly or annual flows for normalization purposes. It alsos run several tests to verify the goodness of fit, using the function fit_perc.

Usage

1
2
fit_norm_dist(flow_series, distr, ref_period = NULL, save_prefix = "",
  save_plots = TRUE, save_dir = getwd())

Arguments

distr

Character name of the probability distribution function

ref_period

Vector of 2 years to subset the data. Defaults to NULL (full datasets)

save_prefix

Character prefix for saved files. Typically a site name or location.

save_plots

TRUE or FALSE Plots should be saved to disk? Defaults to TRUE

save_dir

Character for save directory. Defaults to working directory

flow_data

Dataframe with columns "year" and "flow". Column "month" should also be included if running monthly.

time_scale

Character of either "monthly" or "annual".

Value

monthly_ts a dataframe with results of the null model reconstruction

Author(s)

James Stagge, james.stagge@usu.edu

See Also

fit_perc


jstagge/paleoAPR documentation built on May 4, 2019, 4:22 p.m.