powered by
Invert test column from Rrepest test = TRUE by name on "b." and "se." in the column name and by sign (*-1) on "b."
inv_test(data, name_index)
Dataframe cointaining inverted test column names for "b." and "se." according to Rrepest structure and column multiplied by (-1) for "b."
(dataframe) df to analyze
(string/numeric) name or index for the estimate (b.) columns containing the data for the test in Rrepest)
inv_test(rrepest_pisa_age_gender, name_index = 6)
Run the code above in your browser using DataLab