Prop_Test: Prop Test

Description Usage Arguments Value Examples

View source: R/xtab-prop_test.R

Description

Ausgabe von Konfidenzintervallen von Haufikeiten

Usage

1
2
3
4
5
6
7
8
Prop_Test(x, ...)

Prop_Test2(x, ..., caption = "", note = "")

## Default S3 method:
Prop_Test(x, p = 1/nlevels(x),
  n = length(na.omit(x)), conf.level = 0.95, digits = 0,
  include.ci = TRUE, ...)

Arguments

x

data.frame-Objekt

p

Probability 0.50

n

anzahl

conf.level

Conf-Intervall 95

digits

Nachkomnmastellen

Value

data.frame

Examples

 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")

stp4/stp25APA2 documentation built on May 24, 2019, 9:59 p.m.