Learn R Programming

mStats (version 3.4.0)

Epidemiological Data Analysis

Description

This is a tool for epidemiologist, medical data analyst, medical or public health professionals. It contains three domains of functions: 1) data management, 2) statistical analysis and 3) calculating epidemiological measures.

Copy Link

Version

Install

install.packages('mStats')

Monthly Downloads

238

Version

3.4.0

License

GPL-2 | GPL-3

Maintainer

Myo Minn Oo

Last Published

November 23rd, 2020

Functions in mStats (3.4.0)

expandtbl

Expand 2x2 table into data.frame
duplicates

Report, tag or drop the duplicate observations
append

Append datasets
helpers

Helper functions
formatDate

Format Dates
expand2

Duplicate observations within a dataframe
codebook

Describe the data
histogram

Histograms with overlay normal curve
egen

Categorize a numerical variable
ilog

Create a copy of your output in a text format
regress

Linear Regression Model
replace

Change contents of an existing variable
scatterPlotMatrix

Scatter plot matrices with histogram and correlation coefficients
logit

Logistic Regression Model
lag.data.frame

Lag a variable
tab

Tabulation
generate

Create a new variable
mhrr

Calculating Risk Ratios
mhor

Calculating Odds Ratios
strate

Calculate Incidence Rates from time-to-event data
label

Attach labels to data and variables
summ

Summary statistics
summary

Table Format for Publication
n_

Count from n_ to N_
recode

Recode a variable