Nothing
factor_scores <- function(model, Y, ...) UseMethod("factor_scores")
factor_scores.mcfa <- function(model, Y, tau = NULL, clust= NULL, ...) {
if (any(class(Y) %in% "data.frame")) {
Y <- as.matrix(Y)
}
if (!any(class(Y) %in% "matrix"))
stop("Y needs to be a numeric matrix")
if ((!is.null(tau)) || (exists ("tau"))) {
model$tau <- tau
}
if ((!is.null(clust)) || (exists ("clust"))) {
model$clust <- clust
}
scores <- do.call("factor_scores_mcfa", c(list(Y = Y), model))
scores
}
factor_scores.mctfa <- function(model, Y, tau = NULL, clust= NULL, ...) {
if (any(class(Y) %in% "data.frame")) {
Y <- as.matrix(Y)
}
if (!any(class(Y) %in% "matrix"))
stop("Y needs to be a numeric matrix")
if ((!is.null(tau)) || (exists ("tau"))) {
model$tau <- tau
}
if ((!is.null(clust)) || (exists ("clust"))) {
model$clust <- clust
}
scores <- do.call("factor_scores_mctfa", c(list(Y = Y), model))
scores
}
factor_scores.mfa <- function(model, Y, tau = NULL, clust= NULL, ...) {
if (any(class(Y) %in% "data.frame")) {
Y <- as.matrix(Y)
}
if (!any(class(Y) %in% "matrix"))
stop("Y needs to be a numeric matrix")
if ((!is.null(tau)) || (exists ("tau"))) {
model$tau <- tau
}
if ((!is.null(clust)) || (exists ("clust"))) {
model$clust <- clust
}
scores <- do.call("factor_scores_mfa", c(list(Y = Y), model))
scores
}
factor_scores.mtfa <- function(model, Y, tau = NULL, clust= NULL, ...) {
if (any(class(Y) %in% "data.frame")) {
Y <- as.matrix(Y)
}
if (!any(class(Y) %in% "matrix"))
stop("Y needs to be a numeric matrix")
if ((!is.null(tau)) || (exists ("tau"))) {
model$tau <- tau
}
if ((!is.null(clust)) || (exists ("clust"))) {
model$clust <- clust
}
scores <- do.call("factor_scores_mtfa", c(list(Y = Y), model))
scores
}
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.