removeVar {poolABC} | R Documentation |
Remove columns with zero variance
Description
Removes summary statistics with zero variance.
Usage
removeVar(observed, sumstats)
Arguments
observed |
is a matrix of observed summary statistics. Each column should be a different summary statistic. |
sumstats |
is a matrix of simulated summary statistics. Each column should be a different summary statistic and each row a different simulation. |
Details
Checks the variance of the summary statistics in the observed data and removes summary statistics with zero variance. Those summary statistics are removed from both the matrix of observed values and the matrix of simulated values.
Value
a list with two named entries. One entry contains the matrix of observed summary statistics and the other the simulated summary statistics.
[Package poolABC version 1.0.0 Index]