Learn R Programming

ppRep (version 0.42.3)

postNormMean: 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)

Value

Prior mean

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.

Author

Samuel Pawel