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"); }
TTestBayesianOneSampleForm::TTestBayesianOneSampleForm(QWidget *parent) : AnalysisForm("TTestBayesianOneSampleForm", parent), ui(new Ui::TTestBayesianOneSampleForm) { ui->setupUi(this); _availableVariablesModel.setVariableTypesSuggested(Column::ColumnTypeOrdinal | Column::ColumnTypeScale); ui->listAvailableFields->setModel(&_availableVariablesModel); ui->listAvailableFields->setDoubleClickTarget(ui->variables); TableModelVariablesAssigned *variablesModel = new TableModelVariablesAssigned(this); variablesModel->setSource(&_availableVariablesModel); variablesModel->setVariableTypesSuggested(Column::ColumnTypeOrdinal | Column::ColumnTypeScale); ui->variables->setModel(variablesModel); ui->variables->setDoubleClickTarget(ui->listAvailableFields); ui->buttonAssign_main_fields->setSourceAndTarget(ui->listAvailableFields, ui->variables); }
TTestPairedSamplesForm::TTestPairedSamplesForm(QWidget *parent) : AnalysisForm("TTestPairedSamplesForm", parent), ui(new Ui::TTestPairedSamplesForm) { ui->setupUi(this); _availableFields.setSupportedDropActions(Qt::MoveAction); _availableFields.setSupportedDragActions(Qt::CopyAction); _availableFields.setVariableTypesSuggested(Column::ColumnTypeScale); _availableFields.setIsNominalTextAllowed(false); ui->availableFields->setModel(&_availableFields); ui->availableFields->setDefaultDropAction(Qt::MoveAction); ui->availableFields->setDoubleClickTarget(ui->pairs); TableModelVariablesAssigned *model = new TableModelVariablesAssigned(this); model->setSource(&_availableFields); model->setVariableTypesSuggested(Column::ColumnTypeScale); model->setIsNominalTextAllowed(false); ui->pairs->setModel(model); ui->assignButton->setSourceAndTarget(ui->availableFields, ui->pairs); }