Learn R Programming

nlmeVPC (version 2.6)

FindBestCut: Find the best cutoff values of binning for the visual predictive checks.

Description

By various rules, find the best cutoff values for a given number of bins.

Usage

FindBestCut(X,
            K,
            beta = 0.2, ...)

Value

The best cutoff values to make K bins using X and the minimum within sums of square values for the binning

Arguments

X

A numeric vector to divide into K bins.

K

Number of bins.

beta

Additional parameter in the penalty. For more detailed explanation, see reference.

...

Arguments to be passed to methods.

References

Lavielle, M. and Bleakley, K. (2011). Automatic data binning for improved visual diagnosis of pharmacometric models. Journal of pharmacokinetics and pharmacodynamics, 38(6), 861-871.

VPC automatic binning algorithm in PsN 5.0.0 manual.

Examples

Run this code
data(origdata)
FindBestCut(origdata$TIME,K=10)

Run the code above in your browser using DataLab