cluster.vals: Returns the cluster values from a cv.mcen object.

View source: R/mcen.r

cluster.valsR Documentation

Returns the cluster values from a cv.mcen object.

Description

Returns the cluster values from a cv.mcen object.

Usage

cluster.vals(obj)

Arguments

obj

The cv.mcen object.

Value

Returns the clusters from the model with the smallest cross-validation error.

Author(s)

Ben Sherwood <ben.sherwood@ku.edu>, Brad Price <brad.price@mail.wvu.edu>

Examples


x <- matrix(rnorm(400),ncol=4)
beta <- beta <- matrix(c(1,1,0,0,0,0,-1,-1,0,0,-1,-1,1,1,0,0),ncol=4)
y <- x%*%beta + rnorm(400) 
mcen_fit <- cv.mcen(x,y,ky=2,gamma_y=3)
mcen_cluster <- cluster.vals(mcen_fit)


mcen documentation built on April 1, 2023, 12:11 a.m.

Related to cluster.vals in mcen...