Skip to contents

Reformat out-of-sample model coefficients by removing zones not included in the out-of-sample dataset

Usage

format_outsample_coefs(in_zones, out_zones, Eq, likelihood)

Arguments

in_zones

Vector of zoneIDs in the in-sample dataset

out_zones

Vector of zoneIDs in the out-of-sample dataset

Eq

Tibble containing estimated model coefficients (including standard errors and t-values)

likelihood

Character, name of the likelihood

Value

Return a list with (1) vector of coefficients (zones not in the out-of-sample dataset removed) and (2) flag indicating if the first alt (in-sample dataset) is not included in the out-of-sample dataset.