teaching <-
function(){
tcl<-function(){
clt.examp(1)
msgBox(.dico[["ask_are_you_ready"]])
for(i in 1:50){
clt.examp(i*2)
Sys.sleep(1)
}
}
c('psych', 'svDialogs', 'TeachingDemos', 'tkrplot')->packages
try(lapply(packages, library, character.only=T), silent=T)->test2
if(class(test2)== 'try-error') return(ez.install())
choix <- dlgList(c(.dico[["txt_understanding_confidance_interval"]], .dico[["txt_understanding_alpha_and_power"]],
.dico[["txt_understanding_corr"]],
.dico[["txt_understanding_central_limit_theorem"]],.dico[["txt_understanding_corr_2"]],
.dico[["txt_understanding_prev_sens_specificity"]],
.dico[["txt_understanding_prev_sens_specificity_2"]],
.dico[["txt_understanding_negative_positive_predic_power"]],
.dico[["txt_understanding_bayesian_inference"]],
.dico[["txt_understanding_likelihood"]],
.dico[["txt_understanding_heterogenous_variance_effects"]]), preselect=NULL, multiple = FALSE, title=.dico[["ask_what_do_you_want"]])$res
if(length(choix)==0) return(easieR())
if (choix==.dico[["txt_understanding_confidance_interval"]]) ci.examp() # peut etre completer par des arguments
if (choix==.dico[["txt_understanding_central_limit_theorem"]]) tcl()
if (choix==.dico[["txt_understanding_prev_sens_specificity"]]) plotFagan2()
if (choix==.dico[["txt_understanding_bayesian_inference"]]) plotFagan()
if (choix==.dico[["txt_understanding_likelihood"]]) mle.demo() #des arguments peuvent etre utilises
if (choix==.dico[["txt_understanding_alpha_and_power"]]) run.power.examp(hscale=1.5, vscale=1.5, wait=FALSE)
if (choix==.dico[["txt_understanding_corr"]]) put.points.demo()
if (choix==.dico[["txt_understanding_heterogenous_variance_effects"]]) {
writeLines(.dico[["desc_with_two_equal_means_ratio_must_be_5_percent"]])
run.Pvalue.norm.sim()
}
if (choix==.dico[["txt_understanding_prev_sens_specificity_2"]]) roc.demo()
if (choix==.dico[["txt_understanding_corr_2"]]) run.cor2.examp()
if (choix==.dico[["txt_understanding_negative_positive_predic_power"]]) {
for(i in seq(1,11,2)) {
SensSpec.demo(sens=0.95, spec=0.99, prev=0.01, step=i) # on peut modifier sensibilite et specificite
if( interactive() ) {
readline(.dico[["ask_press_enter_to_continue"]])
}
}
}
ref1(packages)->Resultats
return(Resultats)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.