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.

114 9 Programs and procedures9.7 Other useful commandsBelow we mention some of the other GenStat commands that may be useful when youare writing a procedure. The numbers in brackets are references to sections in the Guideto the GenStat Command Language, Part 1 Syntax and Data Management.To declare (i.e. define) data structures, the main directives areSCALAR scalar (2.2.1)VARIATE variate (2.3.1)TEXT text (2.3.2)FACTOR factor (2.3.3)MATRIX rectangular matrix (2.4.1)DIAGONALMATRIX diagonal matrix (2.4.2)SYMMETRICMATRIX symmetric matrix (2.4.3)TABLE table (2.5)DUMMY dummy (2.2.2)POINTER pointer (2.6)Others are described in later sections of Chapter 2. If you want to redefine an existingstructure as a different type, you must first delete its existing attributes (including its type)by using the DELETE with option setting REDEFINE=yes.To define a data structure with exactly the same attributes as an existing oneDUPLICATEforms new data structures with attributes takenfrom an existing structure (2.11.4)To "convert" values of data structures by putting them into data structures with adifferent typeCALCULATEEQUATEVTABLETo obtain details about data structuresCALCULATEGETATTRIBUTEFor outputPRINTcan form matrices using functions like DIAGONAL,COLBIND, ROWBIND etc (4.2.4), and can formvariates from matrices by using qualifiedidentifiers (4.1.6)copies values between sets of data structures(4.3.1)forms a variate and a set of classifying factorsfrom a table (i.e. converts a table into a datamatrix)can provide information about sizes etc usingfunctions like NVALUES, NVRESTRICTED,NVRESTRICTED, NMV, NLEVELS, NROWS,NCOLUMNS etc (4.2.2)accesses attributes of data structures such as theirtypes, sizes etc (2.11.3)prints data in tabular form to an output file or atext (3.2.1, 3.2.2 and 3.7)CAPTION prints various types of caption and title (3.2.3)PAGEmoves to the top of the next page of an output file(3.2.4)SKIP skips lines of input or output files (3.3.3)DECIMALSsets the number of decimals for a structure, usingits round-offCONCATENATE concatenates together lines of text vectors (4.7.1)TXCONSTRUCTFor checkingforms a text structure by appending orconcatenating values of scalars, variates, texts,factors or pointers; allows the case of letters to bechanged or values to truncated and reversed(4.7.2)

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

Saved successfully!

Ooh no, something went wrong!