Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

proto

Extract the Prototype from Each Variable Group


Description

This function extracts the prototype from each variable group.

Usage

proto(X, y, groups, type = c("max", "median"), mu = NULL)

Arguments

X

Predictor matrix

y

Response matrix with one column

groups

An group index vector containing the group number each variable belongs to. For example: c(1, 1, 1, 1, 1, 2, 2, 2, ...). Variable groups can be generated by the Fisher optimal partition algorithm implemented in FOP.

type

The rule for extracting the prototype. Possible options are "max" and "median".

mu

The mean value of y for standarization. Default is NULL, which uses the sample mean of y.

Value

The prototypes (variable index) extracted from each group (cluster).


OHPL

Ordered Homogeneity Pursuit Lasso for Group Variable Selection

v1.4
GPL-3 | file LICENSE
Authors
You-Wu Lin [aut], Nan Xiao [cre] (<https://orcid.org/0000-0002-0250-5673>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.