13.07.2015 Views

Download pdf guide - VSN International

Download pdf guide - VSN International

Download pdf guide - VSN International

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.3 Subsets of data values 5750 " Another example: use of the .IN. operator-51 to print details of Adams and Day "52 TEXT [VALUES=Adams,Day] AD53 RESTRICT hours1; CONDITION=name.IN.AD54 PRINT name,hours1name hours1Adams 40.00Day 40.0055 " or just the details of Adams "56 RESTRICT hours1; CONDITION=name.IN.'Adams'57 PRINT name,hours1name hours1Adams 40.0058 RESTRICT hours1However, if we had specifiedRESTRICT Hours; CONDITION=Name.EQS.'Adams'GenStat would have reported a fault as it would be unable to do a line-by-line comparisonof the text Names (which has 10 values) and 'Adams' (which has only one).In GenStat for Windows, you can also apply restrictions using sub-options of theRestrict/Filter option of the Spread menu on the menu bar. These then send an appropriateRESTRICT command to the GenStat server.You can use the SUBSET procedure if you do want to store a subset of the units (or ifyou want to use a command that does not recognise RESTRICT). Below we form a textname42, and a variate pay42, with the names and pay in week 1 of the employees thatworked less than 42 weeks.59 " Form a variate with the pay in week 1, and a text with names-60 of the subset that worked less than 42 hours in week 1."61 SUBSET [CONDITION= hours1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!