View source: R/03_IFE_algorithm_functions.R
fill_rcj | R Documentation |
Fills in the optimized number of groups and group specific factors for each C.
fill_rcj(df, all_best_values, subset, S_cand, kg_cand)
df |
input |
all_best_values |
data frame with the optimal number of groups, common factors and group specific factors |
subset |
index of the subsample |
S_cand |
vector with candidate values for the number of estimated groups |
kg_cand |
vector with candidate values for the number of estimated group specific factors |
data.frame
df_results <- add_configuration(initialise_df_results(TRUE),
3, 0, c(3, 3, 3, rep(NA, 17))) #data.frame with one configuration
all_best_values <- calculate_best_config(df_results, data.frame(t(1:5)), 1:5)
rcj <- fill_rcj(initialise_rcj(0:2, 1:5) , all_best_values, 1, 2:4, 2:4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.