Nothing
.FormulaOU <- function(p,
intercept) {
if (intercept) {
formula <- lapply(
X = seq_len(p),
FUN = function(i) {
terms <- paste0(
"(phi_",
i,
"_",
seq_len(p),
" * (eta_",
seq_len(p),
" - mu_",
seq_len(p),
"_1",
"))",
collapse = " + "
)
paste0(
"eta_",
i,
" ~ ",
terms
)
}
)
} else {
formula <- lapply(
X = seq_len(p),
FUN = function(i) {
terms <- paste0(
"(",
"phi_",
i,
"_",
seq_len(p),
" * eta_",
seq_len(p),
")",
collapse = " + "
)
paste0(
"eta_",
i,
" ~ ",
terms
)
}
)
}
formula
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.