hadley / helda

This repository is built for the R package helda (helpful functions for data analysis in R).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R package helda (HELpful functions for Data Analysis in R)

CRAN status R build status Build Status Codecov test coverage Documentation License: GPL v3 Downloads

Overview

This package provides functionalities that aim at facilitating and saving time when analysing data.

Installation

You can install helda from CRAN by simply running:

install.packages("helda")

Development version

To get a bug fix, or use a feature from the development version, you can install helda from this GitHub repository.

# install.packages("devtools")
devtools::install_github("Redcart/helda")

Usage

This is a quick introduction to the lift curve function of the package:

library(helda)

data_training <- titanic_training
data_validation <- titanic_validation

model_glm <- glm(formula = "Survived ~ Pclass + Sex + Age + 
                 SibSp + Fare + Embarked",
                 data = data_training,
                 family = binomial(link = "logit"))

predictions <- predict(object = model_glm, 
                       newdata = data_validation, 
                       type = "response")

plot <- lift_curve(predictions = predictions, 
                   true_labels = data_validation$Survived, 
                   positive_label = 1)

plot

Getting help

If you encounter a clear bug, please file a minimal reproducible example on the issues section of the repository.

Author

Simon Corde

About

This repository is built for the R package helda (helpful functions for data analysis in R).

License:GNU General Public License v3.0


Languages

Language:R 100.0%