dfa_trends {bayesdfa} | R Documentation |
Get the trends from a DFA as a data frame
dfa_trends(rotated_modelfit, years = NULL)
rotated_modelfit |
Output from |
years |
Optional numeric vector of years. |
A data frame with the following columns: time
is the time step, trend_number
is an identifier for each trend, estimate
is the trend mean, lower
is the lower CI, and upper
is the upper CI.
plot_trends fit_dfa rotate_trends
set.seed(1) s <- sim_dfa(num_trends = 1) m <- fit_dfa(y = s$y_sim, num_trends = 1, iter = 50, chains = 1) r <- rotate_trends(m) trends <- dfa_trends(r)