CoreAlg: Title CoreAlg

View source: R/CIBERSORT.R

CoreAlgR Documentation

Title CoreAlg

Description

CoreAlg performs nu-regression using support vector machines (SVM) and calculates weights, root mean squared error (RMSE), and correlation coefficient (R).

Usage

CoreAlg(X, y, absolute, abs_method)

Arguments

X

Input matrix or data frame containing the predictor variables.

y

Numeric vector containing the response variable.

absolute

Logical value indicating whether to use absolute space or relative space for the weights.

abs_method

String indicating the method to calculate the weights in absolute space. Can be either 'sig.score' or 'no.sumto1'.

Value

A list containing the weights ('w'), root mean squared error ('mix_rmse'), and correlation coefficient ('mix_r').

Examples

X <- matrix(rnorm(100), nrow = 10)
y <- rnorm(10)
result <- CoreAlg(X, y, absolute = FALSE, abs_method = "sig.score")


IOBR/IOBR documentation built on Sept. 9, 2024, 8:36 p.m.