A few Useful Functions for Statisticians

compare | Comparing two databases assumed to be identical |

convert_factor | Convert variables of a data frame in factors |

convert_zero_NA | Convert 0s in NA |

cut_quanti | Cut a quantitative variable in n equal parts |

desc | Making descriptive statistics |

hist_boxplot | Plot a histogram with a boxplot below |

IC_OR_glm | OR and their confidence intervals for logistic regressions |

IC_RR_coxph | RR and their confidence intervals for Cox models |

multi.table | Multi cross table |

packHV-package | A few useful functions for statisticians |

plot_km | Kaplan-Meier plot with number of subjects at risk below |

plot_mm | Spaghetti plot and plot of the mean at each time |

plot_multi.table | Plot a multi cross table |

plot_reg | Plot points with the corresponding linear regression line |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.