jasp-stats / jasp-issues

This repository is solely meant for reporting of bugs, feature requests and other issues in JASP.
58 stars 29 forks source link

[Feature Request]: Automatically grading hundreds of datasets #2150

Open rikhuijzer opened 1 year ago

rikhuijzer commented 1 year ago

Description

Automatically grading hundreds of datasets

Purpose

No response

Use-case

No response

Is your feature request related to a problem?

I cannot easily run RegressionLinear

Is your feature request related to a JASP module?

Other

Describe the solution you would like

Being able to call JASP functions from R

Describe alternatives that you have considered

No response

Additional context

Grading hundreds of datasets is currently nearly impossible to automate as far as I can tell. Ideally, one could make a script as follows to grade many datasets:

library(jaspRegression)
library(jaspBase)
library(readr)

for (i in 1:200) {
    filename <- paste0("group", i, ".txt")
    data <- read.csv(file = filename, header = TRUE, stringsAsFactors = FALSE)

    jaspRegression::RegressionLinear(
        data,
        version = "0.17.1",
        formula = ExamScore ~  D1 + AvScore,
        isNuisance = ~ AvScore,
        covariates = "AvScore",
        coefficientCi = TRUE,
        descriptives = TRUE,
        rSquaredChange = TRUE
    )
}
boutinb commented 1 year ago

This is a feature we would like to add indeed. A project is already started, but there is no schedule yet.