DensityQuantile: Value of VOI at the Quantile of Its Density Distribution

View source: R/densityQuantile.R

DensityQuantileR Documentation

Value of VOI at the Quantile of Its Density Distribution

Description

DensityQuantile calculate value of VOI at the quantile of density. It is written for supplying value to be specified in the boxplot. The boxplot can be combined with density plot. The calculation following 3 steps: Step1 find the density distribution. Step2 find the value of the data point at 0 25 50 75 100 percentile of the distribution. Step3 take the value back to the density plot.

Usage

DensityQuantile(data, dv, bandwidth = 1, geotype = "Urban")

Arguments

data

A dataset with var "psutype" and "psuname".

dv

Variable of interest to be calculated.

bandwidth

see density bw.

geotype

Use factor lable of "psutype" variable.

Value

A martix contrains value of VOI at the qualtile of density.


jinyikuang000/normr documentation built on May 17, 2023, 5:58 p.m.