View source: R/405_FTRTucker.R
FTRTucker | R Documentation |
Frequentist tensor regression with the Tucker decomposition
FTRTucker(
input,
ranks = NULL,
epsilon = 1e-04,
betas_LASSO = FALSE,
G_LASSO = TRUE,
step_limit = 1000
)
input |
An object of class |
ranks |
The ranks to be used with the Tucker decomposition. This should be a vector with the same length as the tensor covariate for each subject. |
epsilon |
a value for the stopping rule of the algorithm. Specifically, this is the upper bound for the differences in the log-likelihood between two iterations of the algorithm. |
betas_LASSO |
(logical) Should the LASSO be applied to the betas in the
Tucker tensor decomposition? Defaults to |
G_LASSO |
(logical) Should the LASSO be applied to the core tensor in the
Tucker tensor decomposition? Defaults to |
step_limit |
The maximum number of steps that can be taken before deciding that the algorithm did not converge |
A list with elements gam
(vector coefficient result),
betas
(tensor decomposition components), G
(the core tensor in the tensor decomposition),
B
(the tensor coefficient), llik
(the value of the
log-likelihood) and total_time
(time spent to complete the analysis).
## Not run:
input <- TR_simulated_data()
results <- FTRTucker(input)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.