Skip to content

Commit

Permalink
Update wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
boutinb committed Nov 5, 2024
1 parent 0550600 commit b9ded77
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 57 deletions.
8 changes: 4 additions & 4 deletions R/correlationWrapper.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2013-2022 University of Amsterdam
# Copyright (C) 2013-2024 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -19,7 +19,7 @@

Correlation <- function(
data = NULL,
version = "0.19",
version = "0.19.2",
alternative = "twoSided",
assumptionCheckMultivariateEnergy = FALSE,
assumptionCheckMultivariateMardia = FALSE,
Expand All @@ -41,7 +41,7 @@ Correlation <- function(
meansAndSd = FALSE,
naAction = "pairwise",
pairwiseDisplay = FALSE,
partialOutVariables = list(),
partialOutVariables = list(types = list(), value = NULL),
pearson = TRUE,
plotHeight = 320,
plotWidth = 480,
Expand All @@ -56,7 +56,7 @@ Correlation <- function(
significanceFlagged = FALSE,
significanceReport = TRUE,
spearman = FALSE,
variables = list(),
variables = list(types = list(), value = NULL),
vovkSellke = FALSE) {

defaultArgCalls <- formals(jaspRegression::Correlation)
Expand Down
6 changes: 3 additions & 3 deletions R/correlationbayesianWrapper.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2013-2022 University of Amsterdam
# Copyright (C) 2013-2024 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -19,7 +19,7 @@

CorrelationBayesian <- function(
data = NULL,
version = "0.19",
version = "0.19.2",
alternative = "twoSided",
bayesFactorReport = TRUE,
bayesFactorType = "BF10",
Expand Down Expand Up @@ -52,7 +52,7 @@ CorrelationBayesian <- function(
spearman = FALSE,
supportCorrelationFlagged = FALSE,
variablePairs = list(),
variables = list()) {
variables = list(types = list(), value = NULL)) {

defaultArgCalls <- formals(jaspRegression::CorrelationBayesian)
defaultArgs <- lapply(defaultArgCalls, eval)
Expand Down
18 changes: 9 additions & 9 deletions R/generalizedlinearmodelWrapper.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2013-2022 University of Amsterdam
# Copyright (C) 2013-2024 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -19,23 +19,23 @@

GeneralizedLinearModel <- function(
data = NULL,
version = "0.19",
version = "0.19.2",
formula = NULL,
isNuisance = NULL,
coefficientCi = FALSE,
coefficientCiLevel = 0.95,
coefficientEstimate = TRUE,
contrasts = list(),
covarianceRatio = FALSE,
covariates = list(),
dependent = "",
covariates = list(types = list(), value = NULL),
dependent = list(types = list(), value = ""),
devianceGoodnessOfFit = FALSE,
devianceResidualQqPlot = FALSE,
devianceResidualVsFittedPlot = FALSE,
devianceResidualVsPredictorPlot = FALSE,
dfbetas = FALSE,
dffits = FALSE,
factors = list(),
factors = list(types = list(), value = NULL),
family = "bernoulli",
interceptTerm = TRUE,
leverage = FALSE,
Expand All @@ -49,9 +49,9 @@ GeneralizedLinearModel <- function(
marginalMeansPAdjustment = "holm",
marginalMeansResponse = TRUE,
marginalMeansSd = 1,
marginalMeansVars = list(),
modelTerms = list(),
offset = "",
marginalMeansVars = list(types = list(), value = NULL),
modelTerms = list(optionKey = "components", types = list(), value = list()),
offset = list(types = list(), value = ""),
otherGlmModel = "multinomialLogistic",
partialResidualPlot = FALSE,
pearsonGoodnessOfFit = FALSE,
Expand Down Expand Up @@ -80,7 +80,7 @@ GeneralizedLinearModel <- function(
studentizedResidualOutlierTableTopN = 3,
tolerance = FALSE,
vif = FALSE,
weights = "",
weights = list(types = list(), value = ""),
workingResponseVsLinearPredictorPlot = FALSE) {

defaultArgCalls <- formals(jaspRegression::GeneralizedLinearModel)
Expand Down
14 changes: 7 additions & 7 deletions R/regressionlinearWrapper.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2013-2022 University of Amsterdam
# Copyright (C) 2013-2024 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -19,7 +19,7 @@

RegressionLinear <- function(
data = NULL,
version = "0.19",
version = "0.19.2",
formula = NULL,
isNuisance = NULL,
coefficientBootstrap = FALSE,
Expand All @@ -31,13 +31,13 @@ RegressionLinear <- function(
collinearityStatistic = FALSE,
covarianceMatrix = FALSE,
covarianceRatio = FALSE,
covariates = list(),
dependent = "",
covariates = list(types = list(), value = NULL),
dependent = list(types = list(), value = ""),
descriptives = FALSE,
dfbetas = FALSE,
dffits = FALSE,
fChange = FALSE,
factors = list(),
factors = list(types = list(), value = NULL),
interceptTerm = TRUE,
leverage = FALSE,
mahalanobis = FALSE,
Expand All @@ -49,7 +49,7 @@ RegressionLinear <- function(
method = "enter",
modelAICBIC = FALSE,
modelFit = TRUE,
modelTerms = list(list(components = list(), name = "model0", title = "Model 0"), list(components = list(), name = "model1", title = "Model 1")),
modelTerms = list(list(components = list(), name = "model0", title = "Model 0", types = list()), list(components = list(), name = "model1", title = "Model 1", types = list())),
naAction = "listwise",
nested = TRUE,
partAndPartialCorrelation = FALSE,
Expand Down Expand Up @@ -81,7 +81,7 @@ RegressionLinear <- function(
steppingMethodCriteriaPRemoval = 0.1,
steppingMethodCriteriaType = "pValue",
vovkSellke = FALSE,
weights = "") {
weights = list(types = list(), value = "")) {

defaultArgCalls <- formals(jaspRegression::RegressionLinear)
defaultArgs <- lapply(defaultArgCalls, eval)
Expand Down
12 changes: 6 additions & 6 deletions R/regressionlinearbayesianWrapper.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2013-2022 University of Amsterdam
# Copyright (C) 2013-2024 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -19,7 +19,7 @@

RegressionLinearBayesian <- function(
data = NULL,
version = "0.19",
version = "0.19.2",
formula = NULL,
isNuisance = NULL,
bayesFactorOrder = "bestModelTop",
Expand All @@ -28,8 +28,8 @@ RegressionLinearBayesian <- function(
betaBinomialParamA = 1,
betaBinomialParamB = 1,
castilloParamU = 1,
covariates = list(),
dependent = "",
covariates = list(types = list(), value = NULL),
dependent = list(types = list(), value = ""),
descriptives = FALSE,
effectsType = "allModels",
gPriorAlpha = 3,
Expand All @@ -40,7 +40,7 @@ RegressionLinearBayesian <- function(
modelComplexityPlot = FALSE,
modelPrior = "betaBinomial",
modelProbabilitiesPlot = FALSE,
modelTerms = list(),
modelTerms = list(optionKey = "components", types = list(), value = list()),
modelsShown = "limited",
numModelsShown = 10,
numberOfModels = 0,
Expand All @@ -63,7 +63,7 @@ RegressionLinearBayesian <- function(
seed = 1,
setSeed = FALSE,
summaryType = "averaged",
weights = "",
weights = list(types = list(), value = ""),
wilsonParamLambda = 1) {

defaultArgCalls <- formals(jaspRegression::RegressionLinearBayesian)
Expand Down
14 changes: 7 additions & 7 deletions R/regressionlogisticWrapper.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2013-2022 University of Amsterdam
# Copyright (C) 2013-2024 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -19,7 +19,7 @@

RegressionLogistic <- function(
data = NULL,
version = "0.19",
version = "0.19.2",
formula = NULL,
isNuisance = NULL,
accuracy = FALSE,
Expand All @@ -37,13 +37,13 @@ RegressionLogistic <- function(
conditionalEstimatePlotPoints = FALSE,
confusionMatrix = FALSE,
covarianceRatio = FALSE,
covariates = list(),
dependent = "",
covariates = list(types = list(), value = NULL),
dependent = list(types = list(), value = ""),
descriptives = FALSE,
dfbetas = FALSE,
dffits = FALSE,
fMeasure = FALSE,
factors = list(),
factors = list(types = list(), value = NULL),
hMeasure = FALSE,
independentVsPredictedPlot = FALSE,
independentVsPredictedPlotIncludeInteractions = TRUE,
Expand All @@ -52,7 +52,7 @@ RegressionLogistic <- function(
leverage = FALSE,
mahalanobis = FALSE,
method = "enter",
modelTerms = list(list(components = list(), name = "model0", title = "Model 0"), list(components = list(), name = "model1", title = "Model 1")),
modelTerms = list(list(components = list(), name = "model0", title = "Model 0", types = list()), list(components = list(), name = "model1", title = "Model 1", types = list())),
multicollinearity = FALSE,
nested = TRUE,
oddsRatio = FALSE,
Expand Down Expand Up @@ -80,7 +80,7 @@ RegressionLogistic <- function(
specificity = FALSE,
squaredPearsonResidualVsFittedPlot = FALSE,
vovkSellke = FALSE,
weights = "") {
weights = list(types = list(), value = "")) {

defaultArgCalls <- formals(jaspRegression::RegressionLogistic)
defaultArgs <- lapply(defaultArgCalls, eval)
Expand Down
14 changes: 7 additions & 7 deletions R/regressionlogisticbayesianWrapper.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2013-2022 University of Amsterdam
# Copyright (C) 2013-2024 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -19,7 +19,7 @@

RegressionLogisticBayesian <- function(
data = NULL,
version = "0.19",
version = "0.19.2",
bayesFactorOrder = "bestModelTop",
bayesFactorType = "BF10",
bernoulliParam = 0.5,
Expand All @@ -29,19 +29,19 @@ RegressionLogisticBayesian <- function(
cchPriorAlpha = 0.5,
cchPriorBeta = 2,
cchPriorS = 0,
covariates = list(),
dependent = "",
covariates = list(types = list(), value = NULL),
dependent = list(types = list(), value = ""),
descriptives = FALSE,
effectsType = "allModels",
factors = list(),
factors = list(types = list(), value = NULL),
gPriorAlpha = 3,
inclusionProbabilitiesPlot = FALSE,
logPosteriorOddsPlot = FALSE,
marginalPosteriorPlot = FALSE,
modelComplexityPlot = FALSE,
modelPrior = "betaBinomial",
modelProbabilitiesPlot = FALSE,
modelTerms = list(),
modelTerms = list(optionKey = "components", types = list(), value = list()),
modelsShown = "limited",
numModelsShown = 10,
numberOfModels = 0,
Expand All @@ -64,7 +64,7 @@ RegressionLogisticBayesian <- function(
seed = 1,
setSeed = FALSE,
summaryType = "averaged",
weights = "",
weights = list(types = list(), value = ""),
wilsonParamLambda = 1) {

defaultArgCalls <- formals(jaspRegression::RegressionLogisticBayesian)
Expand Down
7 changes: 0 additions & 7 deletions inst/qml/RegressionLinear.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ Form
property int analysis: Common.Type.Analysis.LinearRegression
property int framework: Common.Type.Framework.Classical

Formula
{
lhs: "dependent"
rhs: [{ name: "modelTerms", extraOptions: "isNuisance" }]
userMustSpecify: "covariates"
}

VariablesForm
{
AvailableVariablesList { name: "allVariablesList" }
Expand Down
7 changes: 0 additions & 7 deletions inst/qml/RegressionLogistic.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ Form
plotWidth: 480
plotHeight: 320

Formula
{
lhs: "dependent"
rhs: [{ name: "modelTerms", extraOptions: "isNuisance" }]
userMustSpecify: "covariates"
}

VariablesForm
{
AvailableVariablesList { name: "allVariablesList" }
Expand Down

0 comments on commit b9ded77

Please sign in to comment.