Nothing
tost_decision = function(hypothesis = "EQU",
mu_text,
pvalue,
pTOST,
alpha){
if (hypothesis == "EQU"){
if(pvalue <= alpha && pTOST <= alpha){
combined_outcome <- paste0("NHST: reject null significance hypothesis that the effect is equal to ",mu_text," \n",
"TOST: reject null equivalence hypothesis")
}
if(pvalue < alpha && pTOST > alpha){
combined_outcome <- paste0("NHST: reject null significance hypothesis that the effect is equal to ",mu_text," \n",
"TOST: don't reject null equivalence hypothesis")
# paste0("statistically different from ",mu_text," and not statistically equivalent")
}
if(pvalue > alpha && pTOST <= alpha){
combined_outcome <- paste0("NHST: don't reject null significance hypothesis that the effect is equal to ",mu_text," \n",
"TOST: reject null equivalence hypothesis")
#paste0("statistically not different from ",mu_text," and statistically equivalent")
}
if(pvalue > alpha && pTOST > alpha){
combined_outcome <- paste0("NHST: don't reject null significance hypothesis that the effect is equal to ",mu_text," \n",
"TOST: don't reject null equivalence hypothesis")
#paste0("statistically not different from ",mu_text," and not statistically equivalent")
}
} else {
if(pvalue <= alpha && pTOST <= alpha){
combined_outcome <- paste0("NHST: reject null significance hypothesis that the effect is equal to ",mu_text," \n",
"TOST: reject null MET hypothesis")
#paste0("statistically different from ",mu_text," and statistically greater than the minimal effect threshold")
}
if(pvalue < alpha && pTOST > alpha){
combined_outcome <- paste0("NHST: reject null significance hypothesis that the effect is equal to ",mu_text," \n",
"TOST: don't reject null MET hypothesis")
#paste0("statistically different from ",mu_text," but not statistically greater than the minimal effect threshold")
}
if(pvalue > alpha && pTOST <= alpha){
combined_outcome <- paste0("NHST: don't reject null significance hypothesis that the effect is equal to ",mu_text," \n",
"TOST: reject null MET hypothesis")
#paste0("statistically not different from ",mu_text," and statistically greater than the minimal effect threshold")
}
if(pvalue > alpha && pTOST > alpha){
combined_outcome <- paste0("NHST: don't reject null significance hypothesis that the effect is equal to ",mu_text," \n",
"TOST: don't reject null MET hypothesis")
#paste0("statistically not different from ",mu_text," and not statistically greater than the minimal effect threshold")
}
}
return(combined_outcome)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.