View source: R/SEM_likelihood.R
matrices_from_df | R Documentation |
List of matrices for SEM model
matrices_from_df(
df,
timestamp_col,
entity_col,
dep_var_col,
lin_related_regressors = NULL,
which_matrices = c("Y1", "Y2", "Z", "cur_Y2", "cur_Z", "res_maker_matrix")
)
df |
Dataframe with data for the likelihood computations. |
timestamp_col |
Column which determines time stamps. For now only natural numbers can be used. |
entity_col |
Column which determines entities (e.g. countries, people) |
dep_var_col |
Column with dependent variable |
lin_related_regressors |
Vector of strings of column names. Which subset of regressors is in non trivial
linear relation with the dependent variable ( |
which_matrices |
character vector with names of matrices which should be
computed. Possible matrices are
|
Named list with matrices as its elements
matrices_from_df(economic_growth, year, country, gdp, c("pop", "sed"),
c("Y1", "Y2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.