1 |
x |
|
y |
|
sp |
|
pv |
|
regfun |
|
plotit |
|
nboot |
|
alpha |
|
pr |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (x, y, sp, pv = 1, regfun = tsreg, plotit = TRUE, nboot = 599,
alpha = 0.05, pr = T)
{
x <- as.matrix(x)
if (pr)
print(paste("Splitting data using predictor", pv))
xx <- x[, pv]
flag <- (xx <= sp)
temp <- reg2ci(x[flag, ], y[flag], x[!flag, ], y[!flag],
regfun = regfun, plotit = plotit, nboot = nboot, alpha = alpha)
temp
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.