Description Usage Arguments Value See Also Examples

Get the trends from a DFA as a data frame

1 | ```
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

1 2 3 4 5 | ```
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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.