analyze.stanreg: Analyze stanreg objects.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/analyze.stanreg.R

Description

Analyze stanreg objects.

Usage

1
2
3
## S3 method for class 'stanreg'
analyze(x, CI = 90, effsize = FALSE,
  effsize_rules = "cohen1988", ...)

Arguments

x

A stanreg model.

CI

Credible interval bounds.

effsize

Compute Effect Sizes according to Cohen (1988). For linear models only.

effsize_rules

Grid for effect size interpretation. See interpret_d.

...

Arguments passed to or from other methods.

Value

Contains the following indices:

Author(s)

Dominique Makowski

See Also

"get_R2.stanreg" "bayes_R2.stanreg"

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
## Not run: 
library(psycho)
library(rstanarm)

data <- attitude
fit <- rstanarm::stan_glm(rating ~ advance + privileges, data=data)

results <- analyze(fit, effsize=TRUE)
summary(results)
print(results)
plot(results)


fit <- rstanarm::stan_glmer(Sepal.Length ~ Sepal.Width + (1|Species), data=iris)
results <- analyze(fit)
summary(results)

fit <- rstanarm::stan_glm(Sex ~ Adjusting,
    data=psycho::affective, family="binomial")
results <- analyze(fit)
summary(results)

fit <- rstanarm::stan_glmer(Sex ~ Adjusting + (1|Salary),
    data=psycho::affective, family="binomial")
results <- analyze(fit)
summary(results)

## End(Not run)

neuropsychology/psycho.R documentation built on July 14, 2018, 10:20 p.m.