Learn R Programming

dsld (version 0.2.2)

dsldDensityByS: dsldDensityByS

Description

Graphs densities of a response variable, grouped by a sensitive variable. Similar to dsldConfounders, but includes sliders to control the bandwidth of the density estimate (analogous to controlling the bin width in a histogram).

Usage

dsldDensityByS(data, cName, sName, graphType = "plotly", fill = FALSE)

Value

No value; plot.

Arguments

data

Datasetwith at least 1 numerical column and 1 factor column

cName

Possible confounding variable column, an R numeric

sName

Name of the sensitive variable column, an R factor

graphType

Type of graph created. Defaults to "plotly".

fill

To fill the graph. Defaults to "FALSE".

Author

N. Matloff, T. Abdullah, A. Ashok, J. Tran

Examples

Run this code
data(svcensus)
dsldDensityByS(svcensus, cName = "wageinc", sName = "educ")

Run the code above in your browser using DataLab