dsldConfounders: dsldConfounders

View source: R/dsldConfounders.R

dsldConfoundersR Documentation

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)

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.

Value

No value; plot.

Author(s)

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

Examples


data(svcensus)
dsldConfounders(svcensus, "educ")


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