| Title: | Methods for Bivariate Poverty Line Calculations |
|---|---|
| Description: | Provides tools for identifying subgroups within populations based on individual response patterns to specific interventions or treatments. Designed to support researchers and clinicians in exploring heterogeneous treatment effects and developing personalized therapeutic strategies. Offers functionality for analyzing and visualizing the interplay between two variables, thereby enhancing the interpretation of social sustainability metrics. The package focuses on bivariate discriminant analysis and aims to clarify relationships between indicator variables. |
| Authors: | Franziska Dorn [aut, cre], René-Marcel Kruse [aut], Thomas Kneib [aut] |
| Maintainer: | Franziska Dorn <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 1.0.2 |
| Built: | 2026-05-20 07:52:24 UTC |
| Source: | https://github.com/cran/BRPL |
Calculate Bivariate Quantiles
brpl(data, var1, var2, tau = 0.5, nalpha = 100)brpl(data, var1, var2, tau = 0.5, nalpha = 100)
data |
Input data frame (tibbles and other data.frame variants are automatically converted to data.frame) |
var1 |
Name of first variable |
var2 |
Name of second variable |
tau |
Quantile level (default: 0.5) |
nalpha |
Number of alpha values (default: 100) |
An object of class brplPlot
df_data <- data.frame(x = 1:10, y = 1:10) result <- brpl(df_data, "x", "y")df_data <- data.frame(x = 1:10, y = 1:10) result <- brpl(df_data, "x", "y")
Calculate Empirical Cumulative Distribution Function
myecdf(data, var, min.var = 0)myecdf(data, var, min.var = 0)
data |
A data frame containing the variable |
var |
Character string specifying the variable name |
min.var |
Minimum value for the variable |
List containing ecdf and quantile functions
This method defines the plotting behavior for objects of the class brplPlot. It generates a
scatter plot visualizing the relationship between two variables (var1 and var2) along with
classification indicators and an additional line for further insights.
## S4 method for signature 'brplPlot' plot(x, y, ...)## S4 method for signature 'brplPlot' plot(x, y, ...)
x |
An object of class
|
y |
Ignored. Included for compatibility with the generic |
... |
Additional arguments passed to the base R |
This method creates:
A scatter plot with points colored based on the value of indicator:
darkgreen for indicator = 1.
blue for other values.
An additional line, derived from the plvar2 matrix, drawn in black.
The title of the plot includes the threshold value (tau) for easier interpretation.
This function does not return a value. It generates a plot as a side effect.
Dataset containing measurements for leisure time (in minutes) and income based on expenditure share
pov_line_examplepov_line_example
a data.frame with 67335 rows and 3 columns:
Leisure time in minutes
Income based on expenditure share of households
Assumed population sampling weights
Dorn, Franziska, et al. "A bivariate relative poverty line for leisure time and income poverty: Detecting intersectional differences using distributional copulas." Review of Income and Wealth 70.2 (2024): 395-419.