calc_like: Calculates the likelihood

Description Usage Arguments Value

Description

Calculates the likelihood

Usage

1
calc_like(df_eq_comb, df_all, param, date_min = NULL, center = F)

Arguments

df_eq_comb

the dataframe containing combinations of alpha_e, kappa_e and sim_idx

df_all

the dataframe containing measurements (in meas) and simulations (in columns starting with sim). sim_idx is the key linking a set of reduced parameters in df_eq_comb to corresponding columns of df_all check that the names of columns in df_all are the same than contents of the sim_idx field.

param

the vector parameters

date_min

date specifying start of rmse calculation, before this date values will be discarded (given as POSIXct object)

center

boolean indicating whether to center timeseries before calculating the rmse

Value

the dataframe df_eq_comb with corresponding likelihood (in like). Also returns mse and logLike.


kcucchi/HZinv documentation built on May 30, 2019, 6:57 p.m.