Description Usage Arguments Details Examples
View source: R/permute_changepoint.R
I guess if you want to do some hypothesis testing, then do a z test of your theorised changepoint & permuted distribution? or of your permuted dist vs prior dist?
1  | permute_changepoint(df, y, x, npoints, iter)
 | 
df | 
 dataframe or tibble object  | 
y | 
 y variable  | 
x | 
 x variable (numeric)  | 
npoints | 
 number of changepoints to look for  | 
iter | 
 number of permutations/iterations  | 
requires mgcv, tidyverse
1  | permute_changepoint(dd,rate,year,npoints=3,iter=1000)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.