ProfileLikCluster: Function that separates a vector into two groups using...

View source: R/Profile_Likelihood_Rank_Selection.R

ProfileLikClusterR Documentation

Function that separates a vector into two groups using profile likelihood

Description

Function that separates a vector into two groups using profile likelihood

Usage

ProfileLikCluster(x, variance = c("equal", "unequal"))

Arguments

x

An ordered (max to min) vector to be clustered into two groups

variance

Either "equal" or "unequal", i.e., whether the assumption is equal variance or unequal variance. If no input is given, equal variance is assumed.

Value

A list that contains the following elements:

index

The index where separates the vector x. The element at the index is considered in the first cluster

profileloglikvec

A vector containing profile log-likelihood for each index

Examples

x = c(20,9.5,9,8,6,5,4.5,3)
ProfileLikCluster(x)

justicesuker/DMMD_Package documentation built on Aug. 6, 2022, 12:34 p.m.