Description Usage Arguments Value Examples
View source: R/xtab-prop_test.R
Ausgabe von Konfidenzintervallen von Haufikeiten
1 2 3 4 5 6 7 8 |
x |
data.frame-Objekt |
p |
Probability 0.50 |
n |
anzahl |
conf.level |
Conf-Intervall 95 |
digits |
Nachkomnmastellen |
data.frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | set.seed(234)
n<-999
library(BayesianFirstAid)
smokers <- c( 83, 90, 129, 70 )
patients <- c( 86, 93, 136, 82 )
g =gl(3, n/3, labels = c("Control", "Treat A", "Treat B"))
g2<- g[sample.int(n)]
levels(g2)<- c("male", "female", "female")
data<- data.frame(g=g, g2=g2,
x=rnorm(n) )[sample.int(n)[1:78],]
#Prop_Test2(data$g)
x<-as.data.frame(table(data$g))$Freq
APA2(~g+g2, data, type="freq.ci")
APA2(g~g2, data, type="freq.ci")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.