Compute standard errors by standard OLS or Newey and West (1987).
get_std_err(yy, xx, lag_nw, k, specs)
List. First element contains the estimated standard errors, the second element contains the OLS point estimates.
A matrix with all endogenous variables.
A matrix with lagged endogenous variables.
Integer. Number of lags for Newey and West
Integer. Value of column to choose from
A list with specifications from lp_lin or lp_nl.
Philipp Adämmer