R/RcppExports.R

Defines functions weight_sparse stl_sort sample_group mbPLS_fit asmbPLS_predict asmbPLS_fit asmbPLS_CV asmbPLSDA_predict asmbPLSDA_multiclass_fit asmbPLSDA_fit asmbPLSDA_binary_fit asmbPLSDA_CV Results_comparison_measure Results_comparison_MSE PCA_Mahalanobis_distance Mahalanobis_distance Euclidean_distance CV_index_multiclass CV_index_binary CV_index

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

CV_index <- function(Y_indicator, K_input, only_observe) {
    .Call(`_asmbPLS_CV_index`, Y_indicator, K_input, only_observe)
}

CV_index_binary <- function(F_matrix, K_input) {
    .Call(`_asmbPLS_CV_index_binary`, F_matrix, K_input)
}

CV_index_multiclass <- function(F_matrix, K_input) {
    .Call(`_asmbPLS_CV_index_multiclass`, F_matrix, K_input)
}

Euclidean_distance <- function(matrix_fit, matrix_predict, F_matrix, outcome_type) {
    .Call(`_asmbPLS_Euclidean_distance`, matrix_fit, matrix_predict, F_matrix, outcome_type)
}

Mahalanobis_distance <- function(matrix_fit, matrix_predict, F_matrix, outcome_type) {
    .Call(`_asmbPLS_Mahalanobis_distance`, matrix_fit, matrix_predict, F_matrix, outcome_type)
}

PCA_Mahalanobis_distance <- function(Y_fit, Y_predict) {
    .Call(`_asmbPLS_PCA_Mahalanobis_distance`, Y_fit, Y_predict)
}

Results_comparison_MSE <- function(Y_predict, Y_true) {
    .Call(`_asmbPLS_Results_comparison_MSE`, Y_predict, Y_true)
}

Results_comparison_measure <- function(Y_predict, Y_true, outcome_type) {
    .Call(`_asmbPLS_Results_comparison_measure`, Y_predict, Y_true, outcome_type)
}

asmbPLSDA_CV <- function(E_matrix, F_matrix, PLS_term, X_dim, quantile_table, outcome_type, Method, Measure, K, ncv, expected_measure_increase, center, scale, maxiter) {
    .Call(`_asmbPLS_asmbPLSDA_CV`, E_matrix, F_matrix, PLS_term, X_dim, quantile_table, outcome_type, Method, Measure, K, ncv, expected_measure_increase, center, scale, maxiter)
}

asmbPLSDA_binary_fit <- function(E_matrix, F_matrix, PLS_term, X_dim, percent, center, scale, maxiter) {
    .Call(`_asmbPLS_asmbPLSDA_binary_fit`, E_matrix, F_matrix, PLS_term, X_dim, percent, center, scale, maxiter)
}

asmbPLSDA_fit <- function(X_matrix, Y_matrix, PLS_term, X_dim, percent, outcome_type, center, scale, maxiter) {
    .Call(`_asmbPLS_asmbPLSDA_fit`, X_matrix, Y_matrix, PLS_term, X_dim, percent, outcome_type, center, scale, maxiter)
}

asmbPLSDA_multiclass_fit <- function(E_matrix, F_matrix, PLS_term, X_dim, percent, center, scale, maxiter) {
    .Call(`_asmbPLS_asmbPLSDA_multiclass_fit`, E_matrix, F_matrix, PLS_term, X_dim, percent, center, scale, maxiter)
}

asmbPLSDA_predict <- function(asmbPLSDA_results, newdata, PLS_term_selected, Method) {
    .Call(`_asmbPLS_asmbPLSDA_predict`, asmbPLSDA_results, newdata, PLS_term_selected, Method)
}

asmbPLS_CV <- function(E_matrix, F_matrix, PLS_term, X_dim, quantile_table, Y_indicator, K, ncv, only_observe, expected_MSE_decrease, center, scale, maxiter) {
    .Call(`_asmbPLS_asmbPLS_CV`, E_matrix, F_matrix, PLS_term, X_dim, quantile_table, Y_indicator, K, ncv, only_observe, expected_MSE_decrease, center, scale, maxiter)
}

asmbPLS_fit <- function(E_matrix, F_matrix, PLS_term, X_dim, percent, center, scale, maxiter) {
    .Call(`_asmbPLS_asmbPLS_fit`, E_matrix, F_matrix, PLS_term, X_dim, percent, center, scale, maxiter)
}

asmbPLS_predict <- function(asmbPLS_results, newdata, PLS_term_selected) {
    .Call(`_asmbPLS_asmbPLS_predict`, asmbPLS_results, newdata, PLS_term_selected)
}

mbPLS_fit <- function(E_matrix, F_matrix, PLS_term, X_dim, center, scale, maxiter) {
    .Call(`_asmbPLS_mbPLS_fit`, E_matrix, F_matrix, PLS_term, X_dim, center, scale, maxiter)
}

sample_group <- function(n, K_input) {
    .Call(`_asmbPLS_sample_group`, n, K_input)
}

stl_sort <- function(x) {
    .Call(`_asmbPLS_stl_sort`, x)
}

weight_sparse <- function(input, lambda) {
    .Call(`_asmbPLS_weight_sparse`, input, lambda)
}

Try the asmbPLS package in your browser

Any scripts or data that you put into this service are public.

asmbPLS documentation built on April 17, 2023, 5:08 p.m.