Learn R Programming

⚠️There's a newer version (3.4.0) of this package.Take me there.

mStats

A tool for Epidemiological Data Analysis.

Please visit https://myominnoo.github.io/pages/R/r_intro.html to install stable version. It's advisable to use stable version for routine works and beta version to test.

Install by using devtools package

install.packages("devtools")

use install_github function from devtools

devtools::install_github("myominnoo/mStats")

2) To install stable version

install.packages("https://myominnoo.github.io/pages/R/r_archive/mStats_3.2.0.tar.gz", repos = NULL, type = "source")

Contact me!

For any comments or feedback, contact me via dr.myominnoo@gmail.com. OR Create an issue in my github repository.

Copy Link

Version

Install

install.packages('mStats')

Monthly Downloads

238

Version

3.2.2

License

GPL-2 | GPL-3

Maintainer

Myo Minn Oo

Last Published

March 31st, 2020

Functions in mStats (3.2.2)

labelVar

Add or replace labels of variables and dataset
lagRows

Create lagged variables
mhor

Calculating Odds Ratios
mhrr

Calculating measures of Risk including Risk Ratio
plotRisks

Plot estimates with 95% Confidence Interval
printText

Display functions for mStats
keep

Keep, drop and filter variables; arrange observations
splitTables

Split tables to make 2x2 tables
splitByColon

Split variable names separated by colon
generate

Create a new variable
rename

Rename variable
strate

Tabulate Incidence Rates from time-to-event data
tabRisks

Calculating Risks and Relative Risks
replace

Change contents of an existing variable
summ

Number Summary for numerical data
esttab

Tabulate estimates of regression models for comparison
recode

Recode contents of a variable
leftJoin

Join two or more datasets
regress

Linear Regression Model
logistic

Logistic Regression Models
tab

Tabulation
tabOdds

Calculating Odds
export

Export outputs
formatDate

Format Dates
rowColOrder

Change reference level by row or column
scoreCI

Calculate confidence intervals by the Wilson Score method
diagTest

Statistics of Diagnostic Tests
enquos

Get names within three dots in a function
append

Append multiple datasets
expand2

Duplicate observations within a dataframe
addDashLines

Add dash lines to data.frame
duplicates

Report and tag duplicated observations
egen

An extension to generate
codebook

Codebook: Detailed information about variables
expandTables

Convert 2x2 tables to data.frame