APA: APA Style Text-Ausgabe

Description Usage Arguments Value Examples

View source: R/APA.R

Description

APA.htest: T-Test

APA.biVar: Korrelation mit Hmisc::spearman2

Ausgabe von APA-Style formatiertem Text.

APA.lm F-Test aus lm und Anova

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
56
57
58
59
60
## S3 method for class 'htest'
APA(x, ...)

## S3 method for class 'bland_altman'
APA(x, ...)

## S3 method for class 'ScalarIndependenceTest'
APA(x, ...)

## S3 method for class 'biVar'
APA(x, ...)

APA(x, ...)

## S3 method for class 'coxph'
APA(x, ...)

## S3 method for class 'psychobject'
APA2(
  x,
  caption = "",
  note = NULL,
  include.ci = FALSE,
  include.effect = FALSE,
  output = stp25output::which_output(),
  ...
)

## S3 method for class ''NULL''
APA(x, ...)

## Default S3 method:
APA(x, ...)

## S3 method for class 'numeric'
APA(...)

## S3 method for class 'factor'
APA(...)

## S3 method for class 'formula'
APA(x, data, exclude = NA, max_factor_length = 25, ...)

## S3 method for class 'stp25_reliability'
APA(x, ...)

## S3 method for class 'lm'
APA(x, include.r = TRUE)

## S3 method for class 'glm'
APA(x, ...)

## S3 method for class 'polr'
APA(x, ...)

## S3 method for class 'xtabs'
APA(x, ...)

## S3 method for class 'table'
APA(x, ...)

Arguments

x

Objekt fit, formula usw

...

weitere Objekte

data

data.frame

exclude, max_factor_length

an Prozent2default

include.r

APA.lm: R-Squar

Value

Character Vector mit einem oder meheren Eintraegen

Examples

 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
 # T-Test
require(coin)
APA(coin::wilcox_test(mpg ~ factor(vs), mtcars))
APA(wilcox.test(mpg ~ vs, mtcars))
APA(t.test(mpg ~ vs, mtcars))

 TeaTasting <-
matrix(c(3, 1, 1, 3),
       nrow = 2,
       dimnames = list(Guess = c("Milk", "Tea"),
                       Truth = c("Milk", "Tea")))
APA.htest(fisher.test(TeaTasting, alternative = "greater"))

# Correlation
APA(Hmisc::spearman2(mpg ~ factor(vs), mtcars))
 ## Hmisc::spearman2 Wilkox-Test

APA(mpg ~ cyl, mtcars)
APA(glm(vs ~ mpg, mtcars, family = binomial()))
APA(lm(mpg ~ drat + wt + qsec, mtcars))
APA(aov(mpg ~ drat + wt + qsec, mtcars))

## Not run: 

 APA( ~ rrs0 + rrs1 + g, hyper)
 APA(chol0+chol1 ~ g, hyper) das geht nicht
 
## End(Not run)

stp4/stp25stat documentation built on Sept. 17, 2021, 2:03 p.m.