quantile_split: Quantile function for BWQS

View source: R/bwqs_main-revised.R

quantile_splitR Documentation

Quantile function for BWQS

Description

This function allows quantile splitting for BWQS model.

Usage

quantile_split(data, mix_name = mix_name, q, shift = TRUE)

Arguments

data

A data.frame where the columns have the name of the mixture components.

mix_name

A character list of components that have been considered in the mixture.

q

An integer to specify how mixture variables will be standardize, e.g. in quartiles (q = 4), deciles (q = 10), or percentiles (q = 100).

shift

If SHITF = TRUE the quantiles are counted from 0, otherwise 1.

Details

For examples of this function see example of bwqs function

Value

A data.frame with quantiles for element of the list only.


ElenaColicino/bwqs documentation built on Feb. 26, 2023, 12:13 a.m.