TTestIndependentSamplesForm::TTestIndependentSamplesForm(QWidget *parent) : AnalysisForm("TTestIndependentSamplesForm", parent), ui(new Ui::TTestIndependentSamplesForm) { ui->setupUi(this); ui->listAvailableFields->setModel(&_availableVariablesModel); ui->listAvailableFields->setDoubleClickTarget(ui->variables); TableModelVariablesAssigned *variablesModel = new TableModelVariablesAssigned(this); variablesModel->setSource(&_availableVariablesModel); variablesModel->setVariableTypesSuggested(Column::ColumnTypeScale); variablesModel->setVariableTypesAllowed(Column::ColumnTypeNominal | Column::ColumnTypeOrdinal | Column::ColumnTypeScale); ui->variables->setModel(variablesModel); ui->variables->setDoubleClickTarget(ui->listAvailableFields); TableModelVariablesAssigned *groupingVariableModel = new TableModelVariablesAssigned(this); groupingVariableModel->setVariableTypesSuggested(Column::ColumnTypeOrdinal | Column::ColumnTypeNominal); groupingVariableModel->setSource(&_availableVariablesModel); ui->groupingVariable->setModel(groupingVariableModel); ui->groupingVariable->setDoubleClickTarget(ui->listAvailableFields); ui->buttonAssignVariables->setSourceAndTarget(ui->listAvailableFields, ui->variables); ui->buttonAssignGroupingVariable->setSourceAndTarget(ui->listAvailableFields, ui->groupingVariable); ui->confidenceIntervalInterval->setLabel("Confidence interval"); ui->descriptivesPlotsConfidenceInterval->setLabel("Confidence interval"); }
TTestBayesianIndependentSamplesForm::TTestBayesianIndependentSamplesForm(QWidget *parent) : AnalysisForm("TTestBayesianIndependentSamplesForm", parent), ui(new Ui::TTestBayesianIndependentSamplesForm) { ui->setupUi(this); ui->listAvailableFields->setModel(&_availableVariablesModel); ui->listAvailableFields->setDoubleClickTarget(ui->variables); TableModelVariablesAssigned *variablesModel = new TableModelVariablesAssigned(this); variablesModel->setSource(&_availableVariablesModel); variablesModel->setVariableTypesSuggested(Column::ColumnTypeScale); variablesModel->setVariableTypesAllowed(Column::ColumnTypeScale | Column::ColumnTypeOrdinal | Column::ColumnTypeNominal); ui->variables->setModel(variablesModel); ui->variables->setDoubleClickTarget(ui->listAvailableFields); TableModelVariablesAssigned *groupingVariableModel = new TableModelVariablesAssigned(this); groupingVariableModel->setVariableTypesSuggested(Column::ColumnTypeOrdinal | Column::ColumnTypeNominal); groupingVariableModel->setSource(&_availableVariablesModel); ui->groupingVariable->setModel(groupingVariableModel); ui->groupingVariable->setDoubleClickTarget(ui->listAvailableFields); ui->buttonAssignVariables->setSourceAndTarget(ui->listAvailableFields, ui->variables); ui->buttonAssignGroupingVariable->setSourceAndTarget(ui->listAvailableFields, ui->groupingVariable); ui->priorWidth->setLabel("Prior width"); }
TTestPairedSamplesForm::TTestPairedSamplesForm(QWidget *parent) : AnalysisForm("TTestPairedSamplesForm", parent), ui(new Ui::TTestPairedSamplesForm) { ui->setupUi(this); _availableFields.setSupportedDropActions(Qt::MoveAction); _availableFields.setSupportedDragActions(Qt::CopyAction); _availableFields.setVariableTypesAllowed(Column::ColumnTypeScale); ui->availableFields->setModel(&_availableFields); ui->availableFields->setDefaultDropAction(Qt::MoveAction); ui->availableFields->setDoubleClickTarget(ui->pairs); TableModelVariablesAssigned *model = new TableModelVariablesAssigned(this); model->setSource(&_availableFields); model->setVariableTypesAllowed(Column::ColumnTypeScale); ui->pairs->setModel(model); ui->assignButton->setSourceAndTarget(ui->availableFields, ui->pairs); }
TTestBayesianOneSampleForm::TTestBayesianOneSampleForm(QWidget *parent) : AnalysisForm("TTestBayesianOneSampleForm", parent), ui(new Ui::TTestBayesianOneSampleForm) { ui->setupUi(this); _availableVariablesModel.setVariableTypesSuggested(Column::ColumnTypeScale); _availableVariablesModel.setVariableTypesAllowed(Column::ColumnTypeScale | Column::ColumnTypeOrdinal | Column::ColumnTypeNominal); ui->listAvailableFields->setModel(&_availableVariablesModel); ui->listAvailableFields->setDoubleClickTarget(ui->variables); TableModelVariablesAssigned *variablesModel = new TableModelVariablesAssigned(this); variablesModel->setSource(&_availableVariablesModel); variablesModel->setVariableTypesSuggested(Column::ColumnTypeScale); variablesModel->setVariableTypesAllowed(Column::ColumnTypeScale | Column::ColumnTypeOrdinal | Column::ColumnTypeNominal); ui->variables->setModel(variablesModel); ui->variables->setDoubleClickTarget(ui->listAvailableFields); ui->buttonAssign_main_fields->setSourceAndTarget(ui->listAvailableFields, ui->variables); // default ui->subjectivePriors->hide(); }