#' covariance structure viewer to preview sigmaThetaExpr to be used in 'cov_clm'.
#'
#' @param sigmaThetaExpr A character with the covariance structure type or a list of expressions
#' @param numWaves An integer with the size of the square matrix to be printed.
#'
#' @return Return NULL and print in terminal the sigmaThetaExpr.
#'
#' @export
sigmaThetaExpr_viewer <- function(sigmaThetaExpr, numWaves = NULL) {
checkSigmaThetaExprRequirements(sigmaThetaExpr, numWaves)
fit <- simulateFitList(sigmaThetaExpr, numWaves)
sigmaThetaExpr <- getSigmaThetaExprList(sigmaThetaExpr, fit)
exprMatrix <- generateExprMatrix(sigmaThetaExpr)
paramsCaption <- Reduce("paste", sigmaThetaExpr$paramsNames)
print(knitr::kable(exprMatrix, align = "c", caption = paramsCaption))
return(invisible(NULL))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.