Description Usage Arguments Value Examples
View source: R/Analyse_real_data.R
Remove Linear trends
1 | remove_trend(ISI, rm.end.time = TRUE)
|
ISI |
The ISI times |
rm.end.time |
Flag for whether we need to remove the last entry (end.time) of the ISI times. |
ISI.times with linear trend removed.
1 2 3 4 | ISI <- c(1,3,2,4,1,5)
ISI.no <- 1:6
remove_trend(ISI, rm.end.time=FALSE)
stats::lm(ISI.no ~ remove_trend(ISI, rm.end.time=FALSE)) # Show the linear trend has been removed.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.