dsldDensityByS: dsldDensityByS

View source: R/dsldConfounders.R

dsldDensityBySR 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")

dsld documentation built on Sept. 14, 2024, 1:08 a.m.