rftest | R Documentation |
Given a sequence of pseudorandom numbers, this function constructs a random forest prediction model for successive values, based on previous values up to a given lag. The ability of the random forest model to predict future values is inversely related to the quality of the sequence as an approximation to locally random numbers.
rftest(u, m=5)
u |
numeric, a vector of pseudorandom numbers to test |
m |
numeric, number of lags to test |
Side effect is a two way layout of graphs showing effectiveness of prediction on a training and a testing subset of data. Good predictions indicate a poor quality sequence.
W. John Braun
x <- runif(200)
rftest(x, m = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.