









































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










































Note: Information for examples in this tutorial can be found in these files. ➢ Data: Data.xlsx ➢ Results: Results.wf 1 ➢ Practice Workfile: Data.wf 1
Generating Random Numbers
Generating a random series: Example 3
Function/Command Description series y=@nrnd Normal distribution (mean 0, st. dev. 1) series y=3+@sqr(4)nrnd* Normal distribution (mean 3, variance 4) series y=@rlognorm(1,4) Lognormal distribution (mean=1, st. dev 4) series y=@runif(1,3) Uniform distribution on (1,3) series y=@rnd Uniform distribution on (0,1) series y=1+(3-1)@rnd* Uniform distribution on (1,3) (same as @runif(1,3))
Function Description series d1 = @runif(0,2) show d1 @dunif(d1,0,2) @cunif(d1,0,2 ) Creates d1 as uniform distribution on (0,2) Displays series d1 created above, pdf of d1 and cdf of d
Functions for Descriptive Statistics
Descriptive Statistics Functions: Example 1
Descriptive Statistics Functions: Example 2
Descriptive Statistics Functions: Example 3 1a. One way to do this is to type the following in the command window : series new=(gdp+pce+inv)/ 3 1b. Another way, would be to type in the command window group row functions: group groupdata gdp pce inv This creates a new group (named “groupdata”) with containing the three series. 2b. Now type the following command in the command window: series new=@rmean(groupdata) This creates a series which is computed by taking the mean of all the three series for each row.