analyze.stanreg: Analyze stanreg objects.

Description Usage Arguments Value Author(s) Examples

View source: R/analyze.stanreg.R

Description

Analyze stanreg objects.

Usage

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

Arguments

x

A stanreg model.

CI

Credible interval bounds.

effsize

Compute Effect Sizes according to Cohen (1988)? Your outcome variable must be standardized.

...

Arguments passed to or from other methods.

Value

output

Author(s)

Dominique Makowski

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
library(psycho)
library(rstanarm)

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

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

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

## End(Not run)

neuropsychology/psycho.R documentation built on April 12, 2018, 7:20 p.m.