Skip to content

sam::QuestionableRounding::Parameters

Module: Parameters of Hacking Strategies

More...

#include <HackingStrategy.h>

Public Attributes

Name
HackingMethod name
HackingTarget target
float threshold
std::string rounding_method
std::optional< float > prevalence
The prevalence factor of the strategy.
std::optional< float > defensibility
The defensibility factor of the strategy.
HackingStage stage

Detailed Description

struct sam::QuestionableRounding::Parameters;

Questionable Rounding Parameters

Example usage:

{
  "name": "QuestionableRounding",
  "rounding_method": "alpha",
  "threshold": 0.01,
  "prevalence": 0.1,
  "defensibility": 0.9,
  "stage": "Reporting"
}

Filename: .json

Public Attributes Documentation

variable name

HackingMethod name = HackingMethod::QuestionableRounding;

variable target

HackingTarget target {HackingTarget::Treatment};

variable threshold

float threshold;

Indicates the distance between the pvalue and alpha by which the researcher considers to round the pvalue to significance

variable rounding_method

std::string rounding_method = "diff";

Rounding Method

  • diff: Setting the rounded p-value to the difference between pvalue and threshold
  • alpha: Setting the rounded p-value to the value of alpha TodoI cna possibly add more methods here, e.g.,

variable prevalence

std::optional< float > prevalence;

The prevalence factor of the strategy.

variable defensibility

std::optional< float > defensibility;

The defensibility factor of the strategy.

variable stage

HackingStage stage {HackingStage::Reporting};

Updated on 29 June 2021 at 16:13:47 CEST


Last update: 2021-09-18