You are on page 1of 1

######## Prueba de Signos#####################

library(BSDA)
efectividad<-c(0.41,0.68,0.52,0.82,0.45,0.78,0.96,0.91,0.75)

SIGN.test(efectividad,md=0.9,alternative = "two.sided",conf.level = 0.95)

SIGN.test(efectividad,md=0.9,alternative = "greater",conf.level = 0.95)

SIGN.test(efectividad,md=0.9,alternative = "less",conf.level = 0.95)

#############Prueba de rachas de Wald - Wolfowitz######################

library(randtests)
rachas<-c(1,1,0,1,1,1,1,1,1,1,0,1,0,0,1,0,0,0,0,1,0,0,0)

runs.test(rachas,alternative = "left.sided",threshold = 0.5,pvalue =


"exact",plot=F)

runs.test(rachas,alternative = "left.sided",threshold = 0.5,pvalue =


"normal",plot=T)

######################Prueba U de Mann Whitney - Wilcoxon#######################

library(exactRankTests)

actual<-c(68,69,72,78,79,80,84)
nuevo<-c(60,64,68,70,72,73)

wilcox.exact(actual,nuevo,exact = T, alternative = "t",conf.int = 0.95)

wilcox.exact(actual,nuevo,exact = F, alternative = "t",conf.int = 0.95)

You might also like