sdwinsp: Simulation of data with identical ns profiles

sdwinspR Documentation

Simulation of data with identical ns profiles

Description

Simulation of data with identical selectivity selectivity profiles. To be used in simulations. Setting either simulation parameters to 'r' will invoke random generation of these numbers. Note that specifying parameters both outside and inside of parameter_row will make those parameters outside being overridden.

Usage

sdwinsp(parameter_row = c(1), n = "r", R = "r", cv_vec = "r", ci = "r")

Arguments

parameter_row

A data frame or data table with only 1 row. Should contain a subset of simulation parameters

n

Integer or 'r' - number of unique samples

R

Integer or 'r' - number of unique samples

cv_vec

vector with two elements or 'r' - MS CVs in decimal

ci

vector with two elements or 'r' - Concentration interval

Details

Combine with lapply() or sapply() to simulate more than one data table. For parallel computing use mc_sdwinsp(). This function should only be used by advanced users. It is not user friendly for those not familiar with R

Value

A data table with 4 columns, two of which are measurement results from two MSs in comparison. In addition, n * R rows

Examples

sdwinsp()

pernille267/commutability.selectivity documentation built on July 20, 2022, 9:11 a.m.