Home

What's New?

Order WINKS

 Order WINKS 7

These WINKS statistics tutorials explain the use and interpretation of standard statistical analysis techniques for Medical, Pharmaceutical, Clinical Trials, Marketing or Scientific Research. The examples include how-to instructions for WINKS SDA Version 6.0 Software. Download evaluation copy of WINKS.

Creating Random Numbers in WINKS

Here are some instructions for creating the database from the uniform distribution random number generator in WINKS. (for WINKS version 4.8)

Creating a database in WINKS using random variables

1. Create a database with a uniform random variable

a. Open the database named BLANK.DBF and click on Edit

b. In the data editor,select Edit/Row Insert and select how many records you want in your database (i.e. 100)

c. Select Edit/Formula Entry

d. To create uniform random numbers for 0 to 100, enter the following formula into the formula field:

100*RND()

e. Click OK-Quick, and the random numbers will be placed into the fields.

f. Select File/Save as to save the database (don't save it as blank.dbf.)

g. Substitute the 100 in the formula for any other maximum number and the resulting random numbers will be created from 0 up to that number.

2. To create a 0/1 variable with approximately equal numbers of  0 and 1, use the formula:

INT(2*RND())

(Random numbers below 1 will be turned into 0 by the INT function, and those 1 and above will be valued as 1)

3. To create a 0/1 variable where about 2/3 are 0 and 1/3 are 1, use the formula:

INT(1.5*RND())

(In this case, there will be 2/3 of the number from 0 to 1, with only a third 1 or greater.)

4. To create a 0/1/2 variable with approximately 1/3 of the numbers having each value, use the formula:

INT(3*RND())

Notes:

1. In database already created, select and entire column by clicking on the variable name before using a formula.

2. You can create more than one variable in a database using this method.

3. Modify the examples above to create other categorical variable combinations.

Click image above to go to Order Options.