sdwinsp2 | R Documentation |
Simulation of data with identical selectivity profiles, but with heteroscedasticity. 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.
sdwinsp2( n = "r", R = "r", cv_vec = "r", ci = "r", xi0 = 1, xi = 2, parameter_row = c(1) )
n |
Integer or 'r' - number of unique samples |
R |
Integer or 'r' - number of unique replicated measurements of each sample |
cv_vec |
vector with two elements or 'r' - MS CVs in decimal |
ci |
vector with two elements or 'r' - Concentration interval |
xi0 |
number that corresponds to starting SD respect to base SD |
xi |
number that corresponds to ending SD respect to starting SD |
parameter_row |
A data frame or data table with only 1 row. Should contain a subset of simulation parameters. Possible simulation parameters are n, R, cvx, cvy, ci_lwr and ci_upr, xi0, xi |
Combine with lapply()
or sapply()
to simulate more than one data table. For parallel computing use mc_sdwinsp2()
. This function should only be used by advanced users. It is not user friendly for those not familiar with R
A data table with 4 columns, two of which are measurement results from two MSs in comparison. In addition, n * R rows
sdwinsp2()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.