postNormMean {ppRep}R Documentation

Mean of normalized power prior

Description

This function computes the mean of a normalized power prior conditional on a fixed power parameter and an initial normal prior for the effect size.

Usage

postNormMean(dat, vardata, priormean, priorvar, alpha = 1)

Arguments

dat

Data.

vardata

Variance of the data.

priormean

Mean parameter of initial normal prior. Defaults to 0.

priorvar

Variance parameter of initial normal prior. Defaults to Inf (uniform prior).

alpha

Power parameter. Indicates to which power the likelihood of the data is raised. Can be set to a number in [0, 1]. Defaults to 1.

Value

Prior mean

Author(s)

Samuel Pawel


[Package ppRep version 0.42.3 Index]