ghdist: generating varibles from g-and-h distribution

Description Usage Arguments Value Examples

View source: R/corTest.R

Description

generating varibles from g-and-h distribution

Usage

1
ghdist(n, g = 0,h = 0)

Arguments

n

the number of the varibles you want to generate

g

the parameter g of g-and-h distribution

h

the parameter h of g-and-h distribution

Value

n varibles generated from g-and-h distribution

Examples

1
2
x = ghdist(50, 0.2, 0.2)
print(x)

Example output

 [1]  0.6730881623  1.5396804794  0.5213127633 -1.0291372233  1.6146282690
 [6] -0.0823135532  0.5808802049 -0.6527628710 -2.1865379632  1.6757723550
[11] -0.9756765767  0.0494478234  0.1721930209  1.4645576129 -0.3965439855
[16] -0.7355238321 -0.3635199128 -0.1073706158 -0.0001474665  4.7384159516
[21] -0.1302707290 -0.0316917362 -0.7707036385  5.5654136339 -0.8321379307
[26] -1.0528223985  1.4825013054  1.0920778592  0.5450263969  0.9202202972
[31] -0.6971914807  2.4467940868 -0.2246918899 -0.7120040042 -0.4687867162
[36]  0.0016199489  0.0280308184 -1.0231169597 -0.2612109531 -0.1476471343
[41]  1.8415231777 -1.5470589257 -2.5175110997  3.2081877846 -0.3480592800
[46] -2.6760072531  1.2193499011 -0.6039425165 -0.4897827865  1.3485563330

corTest documentation built on Nov. 16, 2020, 9:15 a.m.

Related to ghdist in corTest...