@@ -99,7 +99,7 @@ rope <- function(x, ...) {
9999# ' @method as.double rope
100100# ' @export
101101as.double.rope <- function (x , ... ) {
102- x $ ROPE_percentage
102+ x $ ROPE_Percentage
103103}
104104
105105
@@ -131,7 +131,7 @@ rope.numeric <- function(x, range = "default", ci = .89, verbose = TRUE, ...) {
131131
132132 out <- do.call(rbind , rope_values )
133133 if (nrow(out ) > 1 ) {
134- out $ ROPE_percentage <- as.numeric(out $ ROPE_percentage )
134+ out $ ROPE_Percentage <- as.numeric(out $ ROPE_Percentage )
135135 }
136136
137137 # Attributes
@@ -183,19 +183,19 @@ rope.BFBayesFactor <- function(x, range = "default", ci = .89, verbose = TRUE, .
183183 HDI_area <- .hdi_area <- hdi(x , ci , verbose )
184184
185185 if (anyNA(HDI_area )) {
186- ROPE_percentage <- NA
186+ rope_percentage <- NA
187187 } else {
188188 HDI_area <- x [x > = HDI_area $ CI_low & x < = HDI_area $ CI_high ]
189189 area_within <- HDI_area [HDI_area > = min(range ) & HDI_area < = max(range )]
190- ROPE_percentage <- length(area_within ) / length(HDI_area ) * 100
190+ rope_percentage <- length(area_within ) / length(HDI_area ) * 100
191191 }
192192
193193
194194 rope <- data.frame (
195195 " CI" = ci * 100 ,
196196 " ROPE_low" = range [1 ],
197197 " ROPE_high" = range [2 ],
198- " ROPE_percentage " = ROPE_percentage
198+ " ROPE_Percentage " = rope_percentage
199199 )
200200
201201 attr(rope , " HDI_area" ) <- c(.hdi_area $ CI_low , .hdi_area $ CI_high )
@@ -230,7 +230,7 @@ rope.stanreg <- function(x, range = "default", ci = .89, effects = c("fixed", "r
230230 tmp <- .clean_up_tmp_stanreg(
231231 tmp ,
232232 group = .x ,
233- cols = c(" CI" , " ROPE_low" , " ROPE_high" , " ROPE_percentage " , " Group" ),
233+ cols = c(" CI" , " ROPE_low" , " ROPE_high" , " ROPE_Percentage " , " Group" ),
234234 parms = names(parms )
235235 )
236236
@@ -307,7 +307,7 @@ rope.brmsfit <- function(x, range = "default", ci = .89, effects = c("fixed", "r
307307 tmp ,
308308 group = .x ,
309309 component = .y ,
310- cols = c(" CI" , " ROPE_low" , " ROPE_high" , " ROPE_percentage " , " Component" , " Group" ),
310+ cols = c(" CI" , " ROPE_low" , " ROPE_high" , " ROPE_Percentage " , " Component" , " Group" ),
311311 parms = names(parms )
312312 )
313313
0 commit comments