W: Distribution of Heterogeneity of Decision Attitudes

Description Usage Arguments Details Value Examples

View source: R/manual R codes.r

Description

Density function of decision attitudes with heterogeneous w is assumed from the modified beta distribution.

Usage

1
W(n, u, v)

Arguments

u, v

non-negative parameters of the Beta distribution.

Details

u=v indicates the symmetric shape of w distribution, indicating equal chance pessimism and optimism in a population.

The central zero indicates the homogeneity of expected attitude population. More flat the shape is, and more variance of heterogeneity of decision attitude is.

Value

the attitude degree w randomly generated from the distribution.

Examples

1
2
3
4
5
6
u=5
v=5
n=10000
w_obs<-W(n,u,v)
par(mfrow=c(1,1))
hist(w_obs)

ryamada22/SelfDecABP documentation built on May 28, 2019, 10:44 a.m.