citrus.buildEndpointModel: Build an endpoint model

Description Usage Arguments Value Author(s)

View source: R/citrus.model.R

Description

This function constructs an endpoint model using features calculated by citrus.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
citrus.buildModel.classification(
  features,
  labels,
  type,
  regularizationThresholds,
  ...
)

citrus.buildModel.continuous(
  features,
  labels,
  type,
  regularizationThresholds,
  ...
)

citrus.buildEndpointModel(
  features,
  labels,
  family = "classification",
  type = "pamr",
  regularizationThresholds = NULL,
  ...
)

Arguments

features

A numeric matrix of predictive features. Rows are observations and column entries are features.

labels

A vector of endpoint values (i.e. class labels) for each row of the feature matrix.

type

Statistical model to be used. For family='classification', options are pamr (Nearest Shrunken Centroid), glmnet (Lasso-regularized logistic regression), and sam (Non-parametric test in differences of means). For family='continuous', options are glmnet (L1-regularized linear regression), and sam.

regularizationThresholds

Vector of regularization values for penalized model construction. If NULL, values are automatically generated. Not valid for sam models.

...

Other parameters passed to model-fitting procedures.

family

Family of endpoint model to be constructed. Valid values are classification and continuous.

Value

An object of class citrus.endpointModel with properties:

model

The statistical model fit on supplied data.

regularizationThresholds

Regularization Thresholds used to constrain penalized models.

family

Family of model.

type

Model type.

Author(s)

Robert Bruggner


ParkerICI/kumquat documentation built on Dec. 18, 2021, 6:40 a.m.