samp_dist: Sample from prior or posterior distribution

Description Usage Arguments Value

View source: R/utils.R

Description

Sample from prior or posterior distribution

Usage

1
samp_dist(nsamp, means, sds)

Arguments

nsamp

A number. The number of prior or posterior samples to determine the fit and complexity

means

A vector. The prior or posterior means for each group

sds

A number or a vector. The standard deviations for each group If a number is used, the same prior or posterior standard deviation is used for each group.

Value

A matrix of nsamp rows and as many columns as the length of means.


BayesianPower documentation built on July 1, 2020, 6:02 p.m.