f_test: f test for Bayesian parameters estimates

Description Usage Arguments Value Examples

Description

Check what proportion of a parameter estimate fall on the same side of the mean. This value can be use as reference of how confidnet your estimate of the parameter is.

Usage

1
f_test(x)

Arguments

x

vector holding the parameter draw from a MCMC of HMCMC sampler

Value

the proportion of the parmater estimate that is on the same side of the mean.

Examples

1
2
3
4
f_test(rnorm(1e5,mean=-3,sd=6)) #low confidence
f_test(rnorm(1e5,mean=-3,sd=2)) #high confidence
f_test(rnorm(1e5,mean=-3,sd=0.5)) #Certain
#END

RoyChristian/startR documentation built on May 9, 2019, 10:34 a.m.