table.predictions: Function to print the table of means

Description Usage Arguments Examples

View source: R/table.predictions.R

Description

Output of this function is a table of means for the categorical predictors (and their interactions) at either within- or between- subjects level. Statistics of interest such as credible intervals and standard deviations of the means are also computed. Means of numeric variables and their interactions will not be computed.

Usage

1

Arguments

x

the object from BANOVA.*

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(goalstudy)
res <- BANOVA.Normal(bid~1, ~progress*prodvar,  goalstudy, goalstudy$id, 
burnin = 1000, sample = 1000, thin = 1) 

library(rstan)
# or use BANOVA.run based on 'Stan'
res <- BANOVA.run(bid~progress*prodvar, model_name = "Normal", 
data = goalstudy, id = 'id', iter = 1000, thin = 1, chains = 2) 

table.predictions(res)

BANOVAapp/BANOVA_R documentation built on May 3, 2021, 6:30 a.m.