permute_changepoint: returns a permutation based distribution of possible...

Description Usage Arguments Details Examples

View source: R/permute_changepoint.R

Description

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?

Usage

1
permute_changepoint(df, y, x, npoints, iter)

Arguments

df

dataframe or tibble object

y

y variable

x

x variable (numeric)

npoints

number of changepoints to look for

iter

number of permutations/iterations

Details

requires mgcv, tidyverse

Examples

1
permute_changepoint(dd,rate,year,npoints=3,iter=1000)

josiahpjking/jkr documentation built on Sept. 7, 2020, 3:54 a.m.