Description Usage Arguments Value Examples
Randomly generate a dataset and runs auto_rate()
on the data to detect
linear regions (with method = "linear"
). The function plots 4 exploratory
graphs and outputs the results of a linear regression between detected rate
and true (known) rate, which can demonstrate how much the function is able to
predict true rate.
1 2 
reps 
numeric. Number of times to iterate 
len 
numeric. Length (number of observations) of the dataset to test

sd 
numeric. Noise to add to the data. Defaults to .05 standard difference. 
type 
character. Use "default", "corrupted" or "segmented" to pick one of the three different kinds of data to generate. 
preview 
logical. This will show the randomlygenerated data in your plot window at every iteration. Note: will slow the function down. Useful to see the shape of the data. Defaults to FALSE. 
plot 
logical. This will show the diagnostic plots of 
An object of class test_lin
. Contains linear regressin results, and
data required to plot diagnostics.
1 2 3 4 5  # run 3 iterations (please run at least 1000 times for more reliable visuals)
x < test_lin(reps = 3)
# plot(x)
# plot(x, "a") # view only plot "A"
# plot(x, "d") # view only plot "D". You know what to do (for other plots)..

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.