constructSplitPoint: constructSplitPoint

View source: R/helper.R

constructSplitPointR Documentation

constructSplitPoint

Description

This function computes the list of candidate covariate splits.

Usage

constructSplitPoint(X, numberSplit)

Arguments

X

input matrix, of dimension nobs x nvars; each row represents an observation vector.

numberSplit

split numbers for each covariate (length nvars). Each variable's range is divided into numberSplit-1 intervals containing approximately the same number of observations.

Value

The function returns a candidate split list (length nvars). Each element is a vector corresponding to a certain variable's candidate splits (length of numberSplit - 1 or 1 + the number of unique values).


ZijunGao/LinCDE documentation built on Jan. 2, 2023, 11:14 p.m.