re_10point: Calculate the Brief Resilience Scale with a 10-point response...

Description Usage Arguments Note References Examples

Description

This function renames columns; converts all columns to numerics; tests if the scores are outside of the scale limits; recodes requiste columns; and calculates a Brief Resilience Scale score on a 10-point scale. The question order should be the three positively worded questions followed by the three negatively worded questions.

Usage

1
re_10point(start_col, end_col, data)

Arguments

start_col

The column number where the scale begins, reference by number only.

end_col

The column number where the scale end, reference by number only.

data

The reference dataframe.

Note

This function is designed to work with a question order where the first three questions are positive and the second three questions are negative. This function will give inaccurate results if question order is different.

References

The Brief Resilience Scale as used by the SAHMRI Wellbeing and Resilience Centre.

Examples

1
2
3
x <- c(0:10)
df <- data.frame(matrix(sample(x, 10*6, replace = TRUE), nrow = 5, ncol = 6))
re_10point(1, 6, df)

jonathanbart/baxtr documentation built on May 23, 2019, 4:04 a.m.