Replaces the NA values introduced when padding the data. We need to replace the NAs since no na.remove option exists for the Rfast package. See prepare_data for details

replace_na_padding(x)

Arguments

x

A matrix or vector of chosen probabilities

Value

A matrix or vector where NAs are replaced by 1