Nonparametric Methods for Generating High Quality Comparative Effectiveness Evidence

Implements novel nonparametric approaches to address biases and confounding when comparing treatments or exposures in observational studies of outcomes. While designed and appropriate for use in studies involving medicine and the life sciences, the package can be used in other situations involving outcomes with multiple confounders. The package implements a family of methods for non-parametric bias correction when comparing treatments in observational studies, including survival analysis settings, where competing risks and/or censoring may be present. The approach extends to bias-corrected personalized predictions of treatment outcome differences, and analysis of heterogeneity of treatment effect-sizes across patient subgroups. For further details, please see: Lauve NR, Nelson SJ, Young SS, Obenchain RL, Lambert CG. LocalControl: An R Package for Comparative Safety and Effectiveness Research. Journal of Statistical Software. 2020. p. 1–32. Available from .


LocalControl is an R package implementing novel nonparametric approaches to address biases and confounding when comparing treatments or exposures in observational studies of outcomes.

See R help pages for examples on how to run each of the package functions.

Getting Involved


LocalControl is licensed under Apache License 2.0


Build Status

Stable? (Let people know what their expectations should be)


LocalControl 1.1.2

Minor changes

  • Fixed a bug causing survival confidence intervals to be incorrect.
  • Updated vignette to match JSS requests.
  • Changed cardSim data to match the new simulation in the vignette.

LocalControl 1.1.1

Major changes

  • Added vignette

Minor changes

  • Added default value (NULL) to modelForm argument (LocalControl())

LocalControl 1.1.0

Major changes

  • Deprecated the localControlCompetingRisks(), localControlNearestNeighbors(), and (hidden) doLocalControl() functions.

  • Added a new function in their place, LocalControl().

  • The behavior of the three removed functions now exists in this function.

  • The new “outcomeType” parameter allows users to toggle between the competingRisks and NearestNeighbors functionality.

  • Deprecated the plotLocalControlCIF and plotLocalControlLTD functions, replaced with s3 (plot()) functions.

  • Added S3 functions: print() and summary() have also been added for the LocalControl classes.

  • Changed the structure of the LocalControlCS and LocalControlCR objects.

  • Removed the summary object.

  • The summary is now created upon request using the summary() s3 function with the LocalControl classes.

  • Added a formula interface for LocalControl (beta).

    LocalControl(data = lindner, modelForm = formula('cardbill ~ abcix | stent + female + acutemi'))

    Is now a valid alternative to:

    LocalControl( data = lindner, clusterVars = c("stent", "female", "acutemi"), treatmentColName = "abcix", outcomeColName = "cardbill")

LocalControl 1.0.1

Minor changes

  • Changed required R version from R (>= 2.10) to R (>= 3.0.0), due to Rcpp dependency.
  • Updated title field in DESCRIPTION file to remove redundancies.
  • Added Apache Version 2.0 LICENSE file.

Bug fixes

  • Fixed warning: variable length arrays are a C99 feature.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("LocalControl") by Christophe G. Lambert, a year ago

Browse source code at

Authors: Nicolas R. Lauve [aut] , Stuart J. Nelson [aut] , S. Stanley Young [aut] , Robert L. Obenchain [aut] , Melania Pintilie [ctb] , Martin Kutz [ctb] , Christophe G. Lambert [aut, cre]

Documentation:   PDF Manual  

Apache License 2.0 | file LICENSE license

Imports Rcpp, gss, cluster, lattice, stats, graphics

Suggests colorspace, RColorBrewer, TeachingDemos, data.table, ggplot2, gridExtra, rpart, rpart.plot, xtable

Linking to Rcpp

System requirements: C++11

See at CRAN