sam::QuestionableRounding¶
Module: Hacking Strategies
#include <HackingStrategy.h>
Inherits from sam::HackingStrategy
Public Classes¶
Name | |
---|---|
struct | Parameters |
Public Functions¶
Name | |
---|---|
QuestionableRounding() =default | |
QuestionableRounding(const Parameters & p) | |
virtual void | perform(Experiment * experiment) override Applies the hacking method on the Experiment. |
Public Attributes¶
Name | |
---|---|
Parameters | params |
Additional inherited members¶
Public Functions inherited from sam::HackingStrategy
Name | |
---|---|
virtual | ~HackingStrategy() =0 Pure destructor of the Base class. This is important for proper deconstruction of Derived classes. |
HackingStrategy() | |
void | operator()(Experiment * experiment) |
float | defensibility() const |
float | prevalence() const |
HackingStage | stage() const |
HackingTarget | target() const |
std::unique_ptr< HackingStrategy > | build(json & hacking_strategy_config) Factory method for building a HackingStrategy. |
Public Attributes inherited from sam::HackingStrategy
Name | |
---|---|
sol::state | lua |
std::optional< float > | defensibility_ |
std::optional< float > | prevalence_ |
HackingStage | stage_ |
HackingTarget | target_ |
Detailed Description¶
class sam::QuestionableRounding;
QuestionableRounding Hacking Strategy
Questionable rounding strategy mimics the behavior of a researcher who might hack its way to significance by aggressively rounding the pvalue and ignoring everything else.
Public Functions Documentation¶
function QuestionableRounding¶
QuestionableRounding() =default
function QuestionableRounding¶
inline explicit QuestionableRounding(
const Parameters & p
)
function perform¶
virtual void perform(
Experiment * experiment
) override
Applies the hacking method on the Experiment.
Parameters:
- experiment A pointer to an Experiment.
Reimplements: sam::HackingStrategy::perform
Checking whether the outcome is significant, if not, we check whether it's close enough to be a hacked, if so, we either set the pvalue to alpha
or the difference between pvalue and threshold
Public Attributes Documentation¶
variable params¶
Parameters params;
Updated on 29 June 2021 at 16:13:47 CEST
Last update: 2021-09-18