The package can be installed from github with
devtools::install_github("sverchkov/BaselineRegularization", build_vignettes = TRUE)
The R vignettes include a tutorial that covers most features of the package, these can be accessed with
browseVignettes("BaselineRegularization")
# Load the package
library("BaselineRegularization")
# Connect to Database, e.g. postgres [1]
con <- DBI::dbConnect( RPostgreSQL::PostgreSQL()
, host = "localhost"
, user = "user"
, dbname = "omop_example"
, password = rstudioapi::askForPassword("Database Password") )
# Define the Event of interest
event = 4110956 # The concept_id for "Acute myocardial infarction NOS"
# Extract relevant data
br_data <- prepareBRData( con, response_event = event )
# Parametrize task
parameters <- defineBRParameters()
# Fit model
fit <- fitBaselineRegularization( br_data, parameters )
# Show results (beta coefficients)
getCoefficients( fit )
dplyr
under the hood.BaselineRegularization is an R package.
Requires R (version 3.0.0 or greater).
Always required:
Required for database access:
Required for building the documentation:
Required for testing:
BaselineRegularization is licensed under Apache License 2.0
BaselineRegularization is being developed in R Studio.
We use the GitHub issue tracker for bugs and feature requests
Original papers describing the underlying algorithms:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.