Berechne: Berechne Mittelwerte

Description Usage Arguments Value Examples

Description

Die Lagemasse werden ueber die Standard-Funktionen berechnet unterschied ist nur dass Faktoren zu Zahlen transformiert werden und das na.rm=TRUE gesetzt wird. CI = Hmisc::smean.cl.normal

Prozent2 wird in APA.formula errate_statistik2 verwendet freq = Prozent2(x_NA, exclude, digits=digits.percent, rtrn = "df", max_factor_length = max_factor_length)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
berechne(...)

## Default S3 method:
berechne(data, x, by = "1", measure, type,
  fun = function(x) length(na.omit(x)), fm = NULL, digits = NULL,
  measure.name = NULL)

## S3 method for class 'data.frame'
berechne(.data, ..., by = "1", type = 1,
  na.rm = TRUE, conf.interval = 0.95, .drop = TRUE)

berechneMean(data = NULL, measurevar, by = NULL, na.rm = TRUE,
  conf.interval = 0.95, .drop = TRUE)

Prozent2APA(x, exclude = NA, digits = 1, max_factor_length = 35, ...)

Mean2default(x, digits = 2, n = length(x),
  mean.style = get_my_options()$apa.style$mittelwert$mean.style,
  include.level = get_my_options()$apa.style$mittelwert$include_name)

Median2default(x, digits = 2, n = length(x),
  median.style = get_my_options()$apa.style$mittelwert$median.style,
  include.level = get_my_options()$apa.style$mittelwert$include_name)

Prozent2default(x, digits = 0, n = length(x), exclude = NA,
  max_factor_length = 25)

mean2(x, na.rm = TRUE, ...)

median2(x, na.rm = TRUE, ...)

sd2(x, na.rm = TRUE, ...)

CI(x, ci = 0.95, na.rm = TRUE, ...)

StdErr(x, ...)

Mean2(x, ...)

## S3 method for class 'formula'
Mean2(x, data, ...)

## Default S3 method:
Mean2(x, digits = NULL)

Median2(x, ...)

## S3 method for class 'formula'
Median2(x, data, ...)

## Default S3 method:
Median2(x, digits = NULL,
  median.style = get_my_options()$apa.style$mittelwert$median.style, ...)

Meanci2(x, digits = NULL, ...)

Arguments

...

weitere Objekte

data

bei verwendung von Formeln

x

Namen der measure.vars

type

mean, median

fun

Function an plyr::ddply

fm

formel

digits

Nachkommastellen

measure.name, measure, by

Variablen name des Ergebnisses. In Tabelle() measure.name ="value"

.data

Daten

na.rm

NAs

conf.interval

CIs

.drop

anplyr::ddply

ci

Grenzen der Konfidenzintervalle

x

Objekt Vector oder auch Formel

na.rm

Fehlende Werte

digits

Dezimalstellen bei zB Mean2

...

Weitere Argumente

Value

ein dataframe Objekt oder ein Character-String

Vector

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#  Tabelle( hyper, chol0,chol1,chol6,chol12,by=~ g)

res<-stp25APA2:::berechne.default(hyper, 
                                  Cs(chol0,chol1,chol6,chol12), 
                                  by=~med+g, 
                                  measure="mean")
names(res)
 # res
 
berechne(hyper, "chol0" )
names(hyper)
hyper %>% berechne(chol0,chol1,chol6,chol12, by=~med+g)
set_my_options(prozent = list(digits = 1,
style = 2,
null_percent_sign= "."))

Prozent2default(factor(c(1,2,3,3,3,5), 1:5))

mean2(rnorm(100))
sd2(rnorm(100))
CI(rnorm(100))
StdErr(rnorm(100))
mean2(rnorm(100))

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