Learn R Programming

mcradds

The mcradds R package is a complement to mcr package, contains common and solid functions for designing, analyzing and visualization in In Vitro Diagnostic trials. Most of the methods and algorithms refer to CLSI recommendations and NMPA guidelines.

The package provides a series of typical functionality, as shown below:

  • Estimation of sample size for trials, NMPA guideline.
  • Diagnostic accuracy with/without standard/golden reference, CLSI EP12-A2.
  • Regression analysis and plot in method comparison, CLSI EP09-A3.
  • Bland-Altman analysis and plot in method comparison, CLSI EP09-A3.
  • Outlier detection with 4E method from CLSI EP09-A2 and ESD from CLSI EP09-A3.
  • Evaluation of bias in medical decision level, CLSI EP09-A3.
  • Pearson and Spearman correlation adding hypothesis test and confidence interval.
  • Establishing of Reference Range/Interval, CLSI EP28-A3 and NMPA guideline.
  • Paired ROC/AUC test for superiority and non-inferiority trials, CLSI EP05-A3/EP15-A3.
  • Reproducibility analysis (reader precision) for immunohistochemical assays, CLSI I/LA28-A2 and NMPA guideline.
  • Evaluation of precision of quantitative measurements, CLSI EP05-A3.
  • Descriptive statistics summary.

Installation

mcradds is available on CRAN and you can install the latest released version with:

install.packages("mcradds")

or you can install the development version directly from GitHub with:

if (!require("devtools")) {
  install.packages("devtools")
}
devtools::install_github("kaigu1990/mcradds")

See package vignettes browseVignettes(package = "mcradds") for usage of this package.

Copy Link

Version

Install

install.packages('mcradds')

Monthly Downloads

210

Version

1.1.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Kai Gu

Last Published

August 30th, 2024

Functions in mcradds (1.1.1)

blandAltman

Calculate Statistics for Bland-Altman
calcium

Reference Interval Data
h_fmt_count_perc

Format count and percent
cat_with_newline

Concatenate and Print with Newline
h_factor

Factor Variable Per Levels
h_fmt_num

Format Numeric Data
h_fmt_est

Format and Concatenate to String
pearsonTest

Hypothesis Test for Pearson Correlation Coefficient
mcreg

Comparison of Two Measurement Methods Using Regression Analysis
esd.critical

Compute Critical Value for ESD Test
getAccuracy

Summary Method for MCTab Objects
nonparRI

Nonparametric Method in Calculation of Reference Interval
h_difference

Compute Difference for Bland-Altman
glucose

Inermediate Precision Data
nonparRanks

Nonparametric Rank Number of Reference Interval
ldlroc

Two-sampled Paired Test Data
calcBias

Systematical Bias Between Reference Method and Test Method
mcradds-package

mcradds Package
autoplot

Generate a ggplot for Bland-Altman Plot and Regression Plot
size_ci_one_prop

Sample Size for Testing Confidence Interval of One Proportion
printSummary

Print Summary of a Regression Analysis
tukey_outlier

Detect Tukey Outlier
qualData

Simulated Qualitative Data
spearmanTest

Hypothesis Test for Spearman Correlation Coefficient
size_one_prop

Sample Size for Testing One Proportion
tpROC-class

Test for Paired ROC Class
refInterval

Calculate Reference Interval and Corresponding Confidence Interval
size_corr

Sample Size for Testing Pearson's correlation
robustRI

Robust Method in Calculation of Reference Interval
h_fmt_range

Format and Concatenate to Range
h_summarize

Summarize Basic Statistics
size_ci_corr

Sample Size for Testing Confidence Interval of Pearson's correlation
getOutlier

Detect Outliers From BAsummary Object
show,SampleSize-method

Show Method for Objects
getCoefficients

Get Regression Coefficients
%>%

Pipe operator
platelet

Quantitative Measurement Data
SampleSize-class

SampleSize Class
ESD_test

EDS Test for Outliers
anovaVCA

ANOVA-Type Estimation of Variance Components for Random Models
RefInt-class

Reference Interval Class
BAsummary-class

BAsummary Class
adsl_sub

CDISC ADSL Subsetting Data
PDL1RP

PD-L1 Reader Precision Data
MCTab-class

MCTab Class
aucTest

AUC Test for Paired Two-sample Measurements
descfreq

Summarize Frequency Counts and Percentages
VCAinference

Inferential Statistics for VCA-Results
descvar

Summarize Descriptive Statistics
Desc-class

Descriptive Statistics Class
diagTab

Creates Contingency Table
dixon_outlier

Detect Dixon Outlier