Spaces:
Running
Running
Upload app.R
Browse files
app.R
CHANGED
|
@@ -386,13 +386,12 @@ get_moments_analytical <- function(model, group_label = "Unknown") {
|
|
| 386 |
#* @param degree Polynomial degree (default 5)
|
| 387 |
#* @post /calculate
|
| 388 |
#* @get /calculate
|
| 389 |
-
function(group1, group2
|
| 390 |
|
| 391 |
tryCatch({
|
| 392 |
# Parse input
|
| 393 |
x1 <- as.numeric(unlist(strsplit(group1, ",")))
|
| 394 |
x2 <- as.numeric(unlist(strsplit(group2, ",")))
|
| 395 |
-
deg <- as.numeric(degree)
|
| 396 |
|
| 397 |
# Remove any NA values from parsing
|
| 398 |
x1 <- x1[!is.na(x1)]
|
|
@@ -405,7 +404,7 @@ function(group1, group2, degree = 5) {
|
|
| 405 |
}
|
| 406 |
|
| 407 |
# Calculate effect size
|
| 408 |
-
result <- d.quantile(x1, x2,
|
| 409 |
|
| 410 |
# Return clean result
|
| 411 |
return(list(
|
|
|
|
| 386 |
#* @param degree Polynomial degree (default 5)
|
| 387 |
#* @post /calculate
|
| 388 |
#* @get /calculate
|
| 389 |
+
function(group1, group2) {
|
| 390 |
|
| 391 |
tryCatch({
|
| 392 |
# Parse input
|
| 393 |
x1 <- as.numeric(unlist(strsplit(group1, ",")))
|
| 394 |
x2 <- as.numeric(unlist(strsplit(group2, ",")))
|
|
|
|
| 395 |
|
| 396 |
# Remove any NA values from parsing
|
| 397 |
x1 <- x1[!is.na(x1)]
|
|
|
|
| 404 |
}
|
| 405 |
|
| 406 |
# Calculate effect size
|
| 407 |
+
result <- d.quantile(x1, x2, silent = TRUE)
|
| 408 |
|
| 409 |
# Return clean result
|
| 410 |
return(list(
|