Learn R Programming

dsld (version 0.2.2)

dsldConfounders: dsldConfounders

Description

Plots estimated densities of all continuous features X, conditioned on a specified categorical feature C.

Usage

dsldConfounders(data, sName, graphType = "plotly", fill = FALSE)

Value

No value; plot.

Arguments

data

Dataframe, at least 2 columns.

sName

Name of the categorical column, an R factor. In discrimination contexts, Typically a sensitive variable.

graphType

Either "plot" or "plotly", for static or interactive graphs. The latter requires the plotly package.

fill

Only applicable to graphType = "plot" case. Setting to true will color each line down to the x-axis.

Author

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

Examples

Run this code
# \donttest{
data(svcensus)
dsldConfounders(svcensus, "educ")
# }

Run the code above in your browser using DataLab