Take a map object and perform cross-validation, seeing how well titers are predicted when they are excluded from the map.
The acmap data object
A numeric vector of dimensions to be tested
The proportion of data to be used as the test set for each test run
The minimum column basis to use
A vector of fixed column bases with NA for sera where the minimum column basis should be applied
The number of optimizations to perform when creating each map for the dimension test
The number of tests to perform per dimension tested
Map optimizer options, see RacOptimizer.options()
Returns a data frame with the following columns. "dimensions" : the dimension tested, "mean_rmse_detectable" : mean prediction rmse for detectable titers across all runs. "var_rmse_detectable" the variance of the prediction rmse for detectable titers across all runs, useful for estimating confidence intervals. "mean_rmse_nondetectable" and "var_rmse_nondetectable" the equivalent for non-detectable titers
For each run, the ag-sr titers that were randomly excluded are predicted according to their relative positions in the map trained without them. An RMSE is then calculated by comparing predicted titers inferred from the map on the log scale to the actual log titers. This is done separately for detectable titers (e.g. 40) and non-detectable titers (e.g. <10). For non-detectable titers, if the predicted titer is the same or lower than the log-titer threshold, the error is set to 0.
Other map diagnostic functions:
agCohesion()
,
bootstrapBlobs()
,
bootstrapMap()
,
checkHemisphering()
,
logtiterTable()
,
map-table-distances
,
mapBootstrapCoords
,
mapDistances()
,
mapRelaxed()
,
mapResiduals()
,
pointStress
,
ptBootstrapBlob
,
ptBootstrapCoords()
,
ptLeverage
,
ptTriangulationBlob
,
recalculateStress()
,
stressTable()
,
tableColbases()
,
tableDistances()
,
triangulationBlobs()
,
unstableMaps