rlib

Miscellaneous R support functions

View on GitHub

Welcome to GitHub Pages

Miscellaneous R support functions

Credit Rudolf Cardinal

Additional code by Soumya Banerjee

rlib

Introduction

Miscellaneous R support functions for data science and machine learning.

Credit Rudolf Cardinal

Installation


source("https://raw.githubusercontent.com/neelsoumya/rlib/master/INSTALL_MANY_MODULES.R")

Usage

You can source the latest version from Github. For example, to “source” the miscstat.R file from R, you can do this:


source("https://raw.githubusercontent.com/neelsoumya/rlib/master/miscstat.R")

Example


source("https://raw.githubusercontent.com/neelsoumya/rlib/master/cris_common.R")

see

logistic_regression_roc_curve_withCV.R

cris$visualize_fixed_effects_from_lmer(name of lmer or glmer model)

cris$fixed_effects_from_lmer(name of lmer or glmer model)

Files

logistic_regression_roc_curve_withCV.R logistic regression model with CV cross validation and plotting of log-odds odds ratios and AUPR and AUC curves

survival_analysis_example.rmd script for survival analysis

rmarkdown_analysis_template.rmd template R markdown for reproducible analysis

heatmap_script.R script for heatmap

fn_redorder_dendrogram.R script for reordering labels in heatmaps

convert_aupr_to_ggplot.R convert AUPR plot to ggplot for pretty plotting

lmer_confidence_intervals.R confidence intervals for lmer linear mixed effects model

Contact

You can use the editor on GitHub to maintain and preview the content for your website in Markdown files.

Whenever you commit to this repository, GitHub Pages will run Jekyll to rebuild the pages in your site, from the content in your Markdown files.

Markdown

Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for

Syntax highlighted code block

# Header 1
## Header 2
### Header 3

- Bulleted
- List

1. Numbered
2. List

**Bold** and _Italic_ and `Code` text

[Link](url) and ![Image](src)

For more details see GitHub Flavored Markdown.

Jekyll Themes

Your Pages site will use the layout and styles from the Jekyll theme you have selected in your repository settings. The name of this theme is saved in the Jekyll _config.yml configuration file.

Support or Contact

Having trouble with Pages? Check out our documentation or contact support and we’ll help you sort it out.