Helper Function in R

Introduction

MyRFunction is a package that was built and maintained by Chang Shen. Implemented serveral reproducible functions including statistical simulation, statistical learning and visualization. Free feel to fork it from my github page and reuse it

Functions

  • Stratified: Simulation of a stratified randomization for a two-arm study.

  • Emperical.power: Generate a dataframe with each sample size(N), alpha(level of significance), sd(the standard deviation of groups), delta(he true different between group2 and group1), true mean of group1 and the true power and emperical power with simulation

  • plot.emperical.power: Visualize the result of Emperical.power function

  • knnclass: An naive implemention of K nearest neighboors algorithm

  • train_nn: An simple neural network modelling function and result visualiztion

placeholder image 1 placeholder image 2 placeholder image 3
This is a sample gallery to go along with this case study.