For results obtained using mrc
, costs
calculates the the total penalised cost for all segments across all variates for different numbers of
most recent change point values (p). It also calculates the code length \({\rm log}_{2}n^{p}p^{N}\) and the total of the penalised cost and code length. The result
is a data frame containing p, the penalised cost, the code length and the sum of penalised cost and code length. The row in the data frame with the smallest total corresponds to
the minimum description length (MDL). See Bardwell, Eckley, Fearnhead and Smith, (2016) for more details about the cost and code length.