dsldDensityByS {dsld}R Documentation

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)

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".

Value

No value; plot.

Author(s)

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

Examples

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

[Package dsld version 0.2.2 Index]