countIndex: countIndex

View source: R/helper.R

countIndexR Documentation

countIndex

Description

This function counts samples in each bin.

Usage

countIndex(yIndex, numberBin)

Arguments

yIndex

vector of indices representing which bins the responses fall into.

numberBin

the number of bins for response discretization.

Value

The function returns a vector indicating the number of responses in each bin, of length numberBin.


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