trim_rt_optimise: Trim an Rt Optimised output

View source: R/rt_optimise_processing.R

trim_rt_optimiseR Documentation

Trim an Rt Optimised output

Description

Removes poorly fitted trajectories based upon a predefined cutoff. For each optimised trajectory this calculates the least squares error from the observed data, then scales those errors so that the error for estimating 0's is 1 then rejects any trajectories with an error higher than the p_error value.

Usage

trim_rt_optimise(out, p_error)

Arguments

out

An object of type rt_optimised.

p_error

Cutoff value, see description.

Value

An object of type rt_optimised_trimmed, (model type).


mrc-ide/squire.page documentation built on May 27, 2023, 11:20 a.m.