| non_nested_optimization_wrapper | R Documentation |
Helper-function - finds parameters minimizing log-likelihood function for the non-nested version of the SEM setup, using BFGS method
non_nested_optimization_wrapper(
params,
df,
timestamp_col,
entity_col,
dep_var_col,
exact_value,
init_value,
max_init_attempts,
n_all_regressors,
n_timestamps,
control,
max_restarts,
restart_tol,
max_reoptimizations
)
params |
Vector of the initial parameters |
df |
Data frame with data for the SEM analysis. |
timestamp_col |
Column which determines time periods. For now only natural numbers can be used as timestamps |
entity_col |
Column which determines entities (e.g. countries, people) |
dep_var_col |
Column with dependent variable |
exact_value |
Whether the exact value of the likelihood should be
computed ( |
init_value |
The generator function the starting point in |
max_init_attempts |
Maximum number of starting points drawn from
|
n_all_regressors |
Integer. Total number of potential regressors in the
full (maximal) model space. Used to compute the full parameter dimension
(for |
n_timestamps |
Integer. Number of time periods in the panel (i.e. the
number of distinct values in |
control |
a list of control parameters for the optimization which are
passed to optim. Default is
|
max_restarts |
Maximum number of times the BFGS optimization is
restarted from its previous solution for a single model. A restart resets
the internal curvature approximation of BFGS, which often makes further
progress on ill-conditioned likelihood ridges where a single run stalls.
Default is |
restart_tol |
Log-likelihood improvement between restarts below which
the optimization is considered converged. Improvements of this size are
immaterial for posterior model probabilities. Default is |
max_reoptimizations |
Maximum number of times this model is re-optimized from a fresh starting point when its solution turns out to be one no standard errors can be computed from. See optim_model_space. |
List (or matrix) of parameters describing analyzed models.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.