format_data_repest {Rrepest} | R Documentation |
Formatting target, by, and over variables for Rrepest.
Description
Formatting target, by, and over variables for Rrepest.
Usage
format_data_repest(df, svy, x, by.over, user_na = F, ...)
Arguments
df |
(data frame) Data to analyze. |
svy |
(string) Possible projects to analyse: PIAAC, PISA, TALISSCH, TALISTCH, etc. |
x |
(string vector) Target variables. |
by.over |
(string vector) Variables to break analysis by. |
user_na |
(bool) TRUE → show nature of user defined missing values |
... |
Optional arguments such as custom weights (cm.weights) |
Value
Data frame with variables in numeric format for analysis.
Examples
df1 <- format_data_repest(df_pisa18, "PISA", "pv1math", "cnt")
df2 <- format_data_repest(df_pisa18, "PISA", "pv1math", c("cnt","st004d01t"))
df3 <- format_data_repest(df_pisa18, "PISA", "pv1math", c("cnt","st004d01t","iscedl"))
df4 <- format_data_repest(df_talis18, "TALISTCH", "tt3g02", "cntry", isced = 2)
[Package Rrepest version 1.5.4 Index]