home *** CD-ROM | disk | FTP | other *** search
/ Explore the World of Soft…e: Engineering & Science / Explore_the_World_of_Software_Engineering_and_Science_HRS_Software_1998.iso / programs / statistc / kstat41.exe / XXKS2.LZH / KS4PROG.HLP < prev    next >
Text File  |  1995-08-16  |  56KB  |  1,167 lines

  1. KWIKSTAT 4 Professional Program Help Screens
  2. @1,Data Topics:Data entry, import, reports and sorts
  3. @6,Descriptive Statistics
  4. @7,Graphs - Descriptive and Comparative
  5. @12,Spin Plot
  6. @13,t-test and ANOVA, paired or independent groups
  7. @15,Non-Parametric Comparisons
  8. @16,Simple Linear & Multiple Regression and Correlation
  9. @18,Crosstabulations, Frequencies, Chi-Square
  10. @19,Life Table and Survival Analysis
  11. @20,Data Generation and Simulations
  12. @22,Advanced ANOVA Designs
  13. @24,Advanced Regression
  14. @34,Time Series Analysis
  15. @36,Quality Control Charts
  16. @41,Pareto Charts
  17. @42,Multiple Comparisons
  18. @43,Using the FILE menu
  19. @44,Using the EDIT menu
  20. @45,Using the HELP menu (Includes Setup)
  21. @46,Using the KWIKSTAT Viewer
  22. @47,General Graph Options
  23. @50,Using REPLACE & using functions in REPLACE and SUBSET
  24.  
  25. ##1  ##FILE
  26.                                                     
  27.                DATA TOPICS:DATA ENTRY, IMPORTS, REPORTS AND SORTS
  28.                ==================================================
  29.  
  30. Data may be entered from the keyboard, or from an ASCII text file. Data
  31. already stored in a dBASE III or IV file may also be used. Data may also be 
  32. imported from comma delimited and 1-2-3 files. 
  33.  
  34.                         ENTERING DATA FROM THE KEYBOARD
  35.  
  36. 1. CREATE THE STRUCTURE OF YOUR DATABASE by selecting the "NEW DATABASE"
  37. option in the FILE menu.
  38.  
  39. 2. ENTER/APPEND DATA by choosing the "APPEND RECORDS" option on the EDIT menu.
  40.  
  41. 3. EDIT DATA by choosing the "EDIT RECORDS" option on the FILE menu.
  42.  
  43. 4. CREATE NEW VARIABLES and REPLACE CONTENTS OF CURRENT FIELDS by choosing the
  44. F9/Field option while editing data.
  45. ##2
  46.                      ENTERING DATA FROM AN ASCII TEXT FILE
  47.  
  48. Create a database structure using CREATE. Structure should match the columns 
  49. of data in the data file. For example, your data is in a file named 
  50. "MYDATA.TXT". A database structure could be created using the following 
  51. format: 
  52.  
  53. Field Type  Width  Dec
  54.  
  55. NAME    C    10
  56. AGE     N     2     0
  57. BDATE   D     8
  58.  ^      ^     ^     ^
  59.  │      │     │     └─────────────Number of decimals in numeric data
  60.  │      │     └───────────────────Columns where data is found
  61.  │      └─────────────────────────Data type
  62.  └────────────────────────────────Variable (field) name
  63.  
  64. This means NAME is in columns 1-10, AGE in 11-12 and BDATE in 13-21. 
  65. NOTICE: The format MUST be inclusive of all columns. DO NOT SKIP COLUMNS when 
  66. specifying where data is located. 
  67. ##3                                          
  68.  
  69.                    ENTERING DATA FROM A DBASE III or IV FILE
  70.                    -----------------------------------------
  71.  
  72. KWIKSTAT reads data directly from dBASE III and IV files. In each module, you
  73. may specify which dBASE file to use. The module will display all ".DBF" files
  74. in the default path by listing them in a pick box. 
  75.  
  76. To choose the database to use, press the up or down arrow keys to highlight 
  77. the name of a database, then press Enter. 
  78.  
  79. You may also call files from other directories by pressing the F2 key when
  80. the database list appears. Specify another path for the program to search,
  81. enter \DB3. A new pick list appears listing .DBF files in the specified path.
  82.  
  83. ##4
  84.                                   IMPORTING DATA
  85.                                   --------------
  86.  
  87. FROM LOTUS 1-2-3: Import WKS, WK1 files by choosing the Utility option on the 
  88. FILE menu. For WK* import, you need to know the range in the spreadsheet, 
  89. such as A1..D15. KWIKSTAT imports 1-2-3 files for versions 1 and 2 of 1-2-3. 
  90. Also, most versions of 1-2-3 contain options for exporting data in a DBF file 
  91. format, so you can save the data from the spreadsheet as a DBF file, then use 
  92. it directly in KWIKSTAT. Other programs such as EXCEL also will save data as a 
  93. DBF file. (Look in your program's index (i.e. the EXCEL manual) under DBF or 
  94. dBASE.) 
  95.  
  96. IMPORT COMMA DELIMITED ASCII FILES: Import files where data is in the form:
  97.  
  98. 23,34,"label",11
  99.  
  100. by choosing the Utilities option from the FILE menu. 
  101.  
  102. NOTE: Once you have imported, you can change field name, width, etc. by using 
  103. the Modify option on the FILE menu. 
  104.  
  105. ##5 ##OUTPUT
  106.                           REPORTS, DATA OUTPUT, SORTING DATA
  107.                           ----------------------------------
  108.  
  109. The Utility option on the FILE menu allows you to: 
  110.  
  111. o  Output a report, listing the data in the dataset (or a selected subset of
  112. the database). You may view the report before printing it.
  113.  
  114. o Output the data into a standard ASCII TEXT (SDF) file. This is useful for 
  115. transferring the data to other programs. 
  116.  
  117. o Sort data either ascending or descending by specifying field(s) as the sort
  118. keys. For example, use AGE to sort by AGE or STATE+CITY to sort city within
  119. state.
  120.  
  121. ##6 ##STAT                                 
  122.                              DESCRIPTIVE STATISTICS
  123.                              ======================
  124.  
  125. DETAILED STATISTICS - gives mean, standard deviation, etc., plus percentiles, 
  126. confidence interval and a box plot on one variable at a time
  127.  
  128. SUMMARY STATISTICS - gives mean, st. dev. etc. on several variables at a       
  129. time, and allows listing of statistics by a grouping factor
  130.  
  131. P-VALUE - calculates p-value for Z, t, Chi-Square and F statistics
  132.  
  133. DETAILED STATISTICS FROM KEYBOARD ENTRY - Enter data from the keyboard as
  134. numbers or in grouped numbers
  135.  
  136. STEM and LEAF Display - summarizes data using a table/graph
  137.  
  138. ##7, ##GRAPHS
  139.                       GRAPHS - DESCRIPTIVE AND COMPARATIVE
  140.                       ====================================
  141.  
  142. The GRAPH module contains 6 graph types. These are:
  143.  
  144. o BAR/LINE/AREA Graph - shows distributions of frequencies
  145.  
  146. o PIE CHART - shows distributions of data by percent of whole
  147.  
  148. o TIME-SERIES - examines ordered data across time
  149.  
  150. o XY (SCATTERPLOT) - examines the relationship between two variables
  151.  
  152. o HISTOGRAM - examines the distribution of a continuous variable
  153.  
  154. o BY-GROUP - compares two or more groups graphically using means, medians, box
  155.   and whiskers or dot plots
  156.  
  157. ##8
  158.                               CREATING A BAR CHART
  159.                               --------------------
  160. Create the database and enter the data (see Creating a Database). Your
  161. database should look something like this:
  162.  
  163. - It should contain a Label field & a Value field (the Value field contains 
  164. the numbers to use for the plot.) For example: the MAGNET is the LABEL field 
  165. and NAILS is the VALUE field.
  166.  
  167.           ----these are the fields-----
  168. RECORD        MAGNET     NAILS
  169.               ------     ------
  170. 1              SMALL      38    ─┐
  171. 2              MEDIUM     46     │──- this is the data to plot
  172. 3              LARGE      59    ─┘
  173.                  │
  174.                  └─────────────────── these are the labels for the plot
  175.  
  176. NOTE: This will create a BAR CHART with 3 bars labeled SMALL, MEDIUM & LARGE.
  177. You could also use this same data to create a pie chart. NOTE: You can have 
  178. more than one value field, & create a side-by-side bar chart or a stacked 
  179. bar chart. This data can also be used for a line chart or an area chart.
  180. ##9
  181.                               CREATING A PIE CHART
  182.                               --------------------
  183. Create the database and enter the data (see Creating a Database). Your
  184. database should look something like this:
  185.                                                                               
  186. - It should contain a Label field                                             
  187. - It should contain a Value field (contains the numbers to use for the plot)
  188.                                                                               
  189. For example: the COLOR is the LABEL field and COUNT is the VALUE
  190. field. This data refers to hair color for 50 people in your class.
  191.                                                                               
  192.         ----these are the fields-----                                         
  193. RECORD        COLOR      COUNT
  194.               ------     ------                                               
  195. 1              BLONDE      9    ─┐
  196. 2              BROWN      14     │──- this is the data to plot
  197. 3              BLACK      22     │
  198. 4              RED         5    ─┘
  199.                  │                                                            
  200.                  └─────────────────── these are the labels for the plot
  201.  
  202. This will create a PIE CHART with 4 slices. You could also use the same 
  203. database to create a bar chart.
  204. ##10
  205.                     CREATING A SCATTERPLOT/REGRESSION LINE
  206.                     --------------------------------------                                                          
  207. Create the database and enter the data (see Creating a Database). Your        
  208. database should look something like this:                                     
  209.                                                                               
  210. - It should contain a GROUP field (if you have more than one group)
  211. - It should contain two or more value fields
  212.                                                                               
  213. For example: Sex is the GROUP field and Height and Weight are VALUE fields.
  214.                                                                               
  215.               ----these are the fields-----
  216. RECORD          SEX      HEIGHT    WEIGHT
  217.               ------     ------    ------
  218. 1                M         70      202     ─┐
  219. 2                M         65      145      │──- this is the data to plot
  220. 3                M         72      188     ─┘
  221. :                F         60      103
  222. 22               F         62      122
  223. 23               F         59      112
  224.                  └─────────────────── this is the group field
  225.                                                                               
  226. This will create a SCATTERPLOT and REGRESSION LINE PLOT.
  227. ##11
  228.                         CREATING A TIME SERIES/LINE PLOT
  229.                         --------------------------------                                                       
  230. Create the database and enter the data (see Creating a Database). Your
  231. database should look something like this:
  232.                                                                                
  233. Data should contain one or more value fields and an optional label field. 
  234. For example: Sales1 is a VALUE field for team1 and Sales2 for team2. 
  235. Data is in time order. In this example, sales for a month are:
  236.                                                                                
  237.          ----these are the fields-----                                         
  238.  RECORD   DAY      SALES1     SALES2
  239.           ----     ------     ------
  240.  1         1         4          3      ─┐
  241.  2         2         5          4       │──- this is the data to plot
  242.  3         3         6          4      ─┘
  243.  :                   4          5
  244.  31       23         6          5
  245.           ───────────────────────             
  246.                   └─────────────────── these are the group fields
  247.                                                                                
  248.  This will create a TIME SERIES PLOT with two lines.
  249. ##12, ##SPIN
  250.  
  251.                                   SPIN PLOT                                    
  252.                                   =========
  253.  
  254. A spin plot is a three dimensional (XYZ) scatterplot. You must have a database
  255. containing at least three numeric variables. Usually, these variables should be
  256. continuous. Optionally, you can specify a grouping variable.
  257.  
  258. The plot will display the data by group using colors or point patterns. Choose
  259. how the data will be displayed from the <Options> menu. You can choose to 
  260. turn the axis on and off, display a box, display rays, etc.
  261.  
  262. Use the menu at the right of the screen to move the plot in any of three
  263. directions. To cause the plot to move continuously, hold the CTRL key down and
  264. press a directional key (i.e., CTRL-rightarrow).
  265.  
  266.  
  267. ##13 ##TTEST
  268.                               T-TESTS AND ANOVAs
  269.                               ==================
  270.  
  271.                     FOR INDEPENDENT GROUPS OR SINGLE GROUP
  272.                     --------------------------------------
  273. TWO GROUPS:Student's t-test, data expected to have a grouping variable, 
  274. also provides a test for the equality of variance, and two versions of the 
  275. t-test according to whether the variances can be considered equal.
  276.  
  277. 3 TO 10 GROUPS: One way ANOVA, Multiple comparisons performed, data must have 
  278. a grouping variable.  Comparative plots displayed. 
  279.  
  280. T-TEST AND ANOVA from summary data - comparative plot (no box plots) can be 
  281. displayed.
  282.  
  283. Single sample t-test - you choose the hypothesized value to test.
  284.  
  285. ##14 ##REPEAT
  286.                     T-TESTS FOR PAIRED OR REPEATED MEASURES
  287.                     ---------------------------------------
  288.  
  289. TWO TIME PERIODS OR TWO PAIRED OBSERVATIONS:Students t-test for paired         
  290. observations. Data is expected to be paired within each record in the
  291. database. For example: two fields in the database could be:
  292.  
  293. Before After
  294. 200    175
  295. 130    123
  296. etc.
  297.  
  298. 3 TO 10 REPEATED MEASURES: An extension of the t-test, with 3 or more 
  299. repeated measures. Repeated Measures ANOVA performed, with Newman-Keuls 
  300. multiple comparisons. Comparative box plots displayed. 
  301. ##15     ##NPAR
  302.                           NON-PARAMETRIC COMPARISONS
  303.                           ==========================
  304.  
  305. Note:Use non-parametric procedures when the data cannot be assumed to be 
  306. normally distributed. 
  307.  
  308.                     FOR INDEPENDENT GROUPS OR SINGLE GROUP
  309.                     --------------------------------------
  310.  
  311. TWO GROUPS: Mann-Whitney U, comparison based on ranks of the data.
  312.  
  313. 3 TO 10 GROUPS: Kruskal-Wallis One-way ANOVA based on ranks; Multiple 
  314. comparisons performed at the 0.05 significance level. 
  315.  
  316.                        FOR PAIRED OR REPEATED MEASURES
  317.                        -------------------------------
  318. TWO TIME PERIODS OR TWO PAIRED OBSERVATIONS: Friedman's Test.
  319.  
  320. 3 TO 10 REPEATED MEASURES: Friedman's ANOVA with Multiple comparisons. 
  321.  
  322. ##16 ##REG 
  323.  
  324.                               LINEAR REGRESSION
  325.                               =================
  326.  
  327. SIMPLE LINEAR REGRESSION - relating two variables. This procedure provides 
  328. an equation representing a straight line fitted through the data, and a test 
  329. of the significance of the linear relationship. You can also plot the data 
  330. to verify a linear trend and to examine residuals.
  331.  
  332. MULTIPLE REGRESSION - Allows you to relate up to 10 independent variables to 
  333. a dependent variable. The significance of each variable is determined, and 
  334. the coefficients to a prediction are calculated. 
  335.  
  336. You can use the information on the significance of each variable to determine 
  337. what variables to leave in the equation and which to remove in order to find 
  338. the best equation possible. 
  339. ##17                                               
  340.  
  341.  
  342.                             CORRELATION PROCEDURES                             
  343.                             ----------------------
  344. CORRECTION calculates the Pearson and Spearman correlation coefficient for a
  345. pair of variables. The significance of the coefficient is also given.
  346. Usually, Pearson's is calculated when the data are normal, and Spearman 
  347. (which is based on ranks) is used for non-normal data.
  348.  
  349. MATRIX OF CORRELATIONS - allows you to calculate combinations of correlations 
  350. (Pearson) on up to ten variables at a time.
  351.  
  352. DISPLAY A MATRIX OF SCATTERGRAMS - allows you to visually examine the 
  353. relationship on pairs of data for up to 10 combinations at a time.
  354.  
  355. ##18,Crosstabulations, Frequencies, Chi-Square ##CROSS
  356.                   CROSSTABULATIONS, FREQUENCIES & CHI-SQUARE
  357.                   ==========================================
  358.  
  359. The Crosstabulations, Frequencies, Chi-Square module performs analyses 
  360. on categorical data, that is, data observed in categories, rather than 
  361. measurement data. Generally, categorical data are entered into a database 
  362. by using one record for each person or entity on which the observation is
  363. made and one field for each characteristic which is divided into
  364. categories. For example, to categorize ten people by sex, hair
  365. color and eye color, you would need ten records (one per person)
  366. and three fields (e.g., SEX, HAIR, EYE). 
  367.  
  368. Some of the procedures in this module give you the choice of simply            
  369. entering totals for each category rather than creating a database
  370. and entering the results of each observation. This can save time if
  371. totals are known and only totals are needed to perform a test or
  372. calculation or to produce a graph.
  373.                                             
  374. KWIKSTAT "counts" the occurrence of each data value for a single variable 
  375. or field and displays that information in a table or in a graph.
  376. ##19,Life Table and Survival Analysis ##LIFE
  377.                        LIFE TABLE AND SURVIVAL ANALYSIS
  378.                        ================================
  379. As the name indicates, this module performs life tables (either actuarial or 
  380. Kaplan-Meier) and survival comparison procedures. The data must be in the
  381. following form:
  382.  
  383. 1) a TIME variable which contains a time (e.g., minutes, days,                 
  384. years, etc.) in which the subject or component has been observed to
  385. be alive (not failed).
  386.  
  387. 2) a CENSOR variable which must take on the values 0 or 1,  where              
  388. 1 means the subject has died (failed), and a 0 means the subject
  389. was still alive (not failed) at the last available time period.
  390.  
  391. 3) optionally, a GROUPING variable which may have up to ten values             
  392. (numeric or character), i.e., the data may be in groups.
  393.  
  394. A plot is given for the cumulative proportion surviving in the                 
  395. group(s) against time. If more than one group is entered, a
  396. Mantel-Haenszel test is performed to test the hypothesis of equal
  397. survival patterns for the groups. 
  398. ##20 #SIMU
  399.                         DATA GENERATION AND SIMULATIONS
  400.                         ===============================
  401.  
  402. A) GENERATE DATA SETS
  403. This option allows you to create KWIKSTAT (dBASE) data sets from a Normal,
  404. Uniform or Exponential distribution. You will be asked to specify the number of
  405. variables to generate. Then for each variable, you must specify if it is to be
  406. from a Normal, Uniform or Exponential distribution.
  407.  
  408. B) 95% CONFIDENCE INTERVAL SIMULATION
  409. The 95% Confidence Interval simulation shows visually the meaning of a 95%
  410. confidence interval. In this simulation, 100 samples of size 30 are drawn from
  411. a normally distributed distribution and a 95% C.I. is calculated for each
  412. sample. The true mean of the population is plotted as a horizontal line on the
  413. screen. Each C.I. is plotted vertically on the screen so you can visually see 
  414. the range of the C.I. and whether or not it covers the true population mean.
  415. All 100 C.I.'s are plotted and a summary of how many covered the population
  416. mean is displayed on the screen.
  417.  
  418. (continued)
  419. ##21
  420. (Simulations continued...) 
  421.                                                     
  422. C) FLIP A COIN DEMONSTRATION
  423. When you flip a fair coin, you would expect the percentage of heads to approach
  424. 50% over a long period of time. This simulation automates 100 coin tosses and
  425. graphs the results. You should repeat this simulation a number of times to see
  426. how the graph varies for different series of flips. 
  427.  
  428. D) DEMONSTRATE DISTRIBUTION OF SAMPLE MEAN (CENTRAL LIMIT THEOREM)
  429. In this demonstration, a population of 500 points is generated from either a
  430. Normal, Uniform or Exponential distribution. Then, 100 samples of sizes 1, 2,
  431. 3, 5, 10 and 30 are taken from the population. A histogram of the original
  432. "population" is displayed on the left side of the computer screen and a
  433. histogram of the 100 sample means is displayed on the right side of the screen.
  434. As each pair of histograms is displayed, you can see how the right side
  435. histograms approach a bell-shape as the sample size increases. Also, as the
  436. sample size increases, the spread of the histogram gets smaller, the standard
  437. deviation decreases by n times. The demonstration will automatically cycle
  438. through the 5 sizes of samples.
  439.  
  440. E) LIST VALUES FROM A DATABASE TO THE SCREEN
  441. This option allows you to display the contents of a database to the screen. 
  442. ##22,Advanced ANOVA Designs ##ADVAOV
  443.                             ADVANCED ANOVA DESIGNS
  444.                             ======================
  445.  
  446. Two-Way ANOVA (balanced or unbalanced)- An analysis of variance is a method of
  447. comparing means between several experimental groups. In a two-way analysis of
  448. variance, the experimental design consists of two grouping factors and one or
  449. more observations on each combination of the grouping factors.
  450. For example, suppose you have designed an experiment to examine the
  451. effectiveness of several display strategies on sales. You have selected three
  452. display widths, and two heights, giving you 6 display combinations. In order to
  453. make comparisons of sales for each combination of height and width, you want to
  454. place one of the 6 display combinations at each of several stores. Then, after
  455. a period of time, you will examine the sales from each combination to see if
  456. you can discover which combination produces the most sales. (See the database
  457. on disk named SALES.DBF.)
  458.  
  459. NOTE: If the data are balanced (no missing values) both the balanced and
  460. unbalanced analysis will yield the same results. However, the unbalanced
  461. procedure usually takes longer to compute. Therefore, use the unbalanced
  462. procedure only when you have unequal sample sizes per cell in the design.
  463.  
  464. (continues...)
  465. ##23
  466. (ADVANCED ANOVA DESIGNS continued...)
  467.  
  468. Two-Way Repeated Measures Analysis - In a two-way analysis of variance, it is
  469. common to examine one "subject" at several points in time, or under several
  470. conditions. This differs from the replicates on the two-way analysis example
  471. where the "replicates" are unrelated. In a repeated measures example the
  472. replicates are related.
  473.  
  474. Data for an example repeated measures two-way analysis is included in the
  475. database REPEAT2.DBF on disk. In this example, there are two methods of
  476. calibrating DIALS (factor A), and the levels of B are four SHAPES of the dials.
  477. Six subjects were randomly assigned to perform the calibrating on a particular
  478. dial (A) for all four shapes of dials. That is, each of the six subjects were
  479. observed four times, once for each combination of the DIAL/SHAPE settings. The
  480. scores observed are accuracy. 
  481.  
  482. ##24,Advanced Regression ##ADVREG
  483.                               ADVANCED REGRESSION
  484.                               ===================
  485.  
  486. Regression analysis is used to model relationships between a dependent 
  487. (response) variable and one or more independent (predictor) variables. The
  488. KWIKSTAT Advanced Regression Module includes three regression options:
  489.  
  490. o Polynomial Regression
  491. o All Possible Regressions
  492. o Stepwise Regression
  493. o Customized  (Least Squares) Regression Calculations
  494.  
  495. Polynomial Regression Analysis is useful for determining whether higher order
  496. terms (squared, cubed,etc.) of a single predictor (independent) variable are
  497. helpful in modeling the relationship with the response (dependent) variable. 
  498. All Possible and Stepwise Regression options are methods for the final step in
  499. multiple linear regression, that of selecting a set of predictor variables for
  500. appropriately modeling the relationship between the predictors and the
  501. response. Customized Regression allows you to define the contents of the 
  502. regression matrices that are used in calculating the regression equation. 
  503.  
  504. (continues...)
  505. ##25 ##POLY                                      
  506. (Regression continued...)
  507.                                                                                
  508.                             Polynomial Regression
  509.                             ---------------------
  510. Polynomial regression is considered in a situation in which the relationship 
  511. between predictor and response variables is curvilinear. 
  512.  
  513. The data in GAME.DBF are the ages of 29 players and their scores on a new 
  514. video game (generated data). If you plot that data on an XY plot, it appears 
  515. that the relationship between AGE and SCORE is not clearly linear, but that a 
  516. quadratic term may be helpful in describing the relationship. Such a 
  517. polynomial model can be recognized as a form of a multiple linear regression 
  518. model with two predictor variables, X and X-Squared. 
  519.  
  520. In fitting a polynomial regression model, all lower order terms must be 
  521. included. That is, the first-order term is used, and higher order terms are 
  522. used only if the first-order term is not sufficient. A cubic term is used 
  523. only if both the linear (first-order) and quadratic (second-order) terms are 
  524. included. When using Polynomial Regression in KWIKSTAT, you are asked to 
  525. specify the order of the polynomial you wish to fit. 
  526.  
  527. (continues...)
  528. ##26
  529. (Polynomial Regression continued...) 
  530.  
  531. As with any multiple regression analysis, care must be taken to avoid 
  532. collinearities between the predictors. That is, if the predictors are highly 
  533. correlated, the coefficient estimates may contain considerable error. 
  534. Centering the data is an option, but may not always sufficiently reduce 
  535. collinearities, in which case the data should be standardized (divide the 
  536. centered values by the standard deviation of the predictor variable values). 
  537.  
  538. There are various approaches for determining the order of the model. One 
  539. method is a "forward selection" procedure in which the first-order (linear) 
  540. term is fit and then higher order terms are added sequentially until the 
  541. F-test for a non-zero coefficient is not significant for the highest order 
  542. term. Another method is a "backward elimination" procedure in which an 
  543. appropriately high-order polynomial model is fit and terms are deleted one at 
  544. a time from high to low order until the highest order term of the remaining 
  545. terms results in a significant F-test. These two methods may not result in 
  546. the same model. 
  547.  
  548. (continues...)
  549. ##27
  550. (Polynomial Regression continued...)
  551.                                                                             
  552. KWIKSTAT fits a model of the order you select and reports the coefficients of 
  553. each term, including an intercept term, up to that order. The results of the 
  554. tests of significance of these coefficients are also reported. A small 
  555. p-value indicates that the corresponding coefficient is significantly 
  556. different from zero. Residual analysis is also useful for investigating the 
  557. appropriateness of the model selected. KWIKSTAT also reports the Analysis of 
  558. Variance for the entire regression fit, as well as R-Square and adjusted 
  559. R-Square, as it does in the regular Linear Regression module. 
  560.  
  561. In general, in regression analysis simpler models are preferred. It may be 
  562. possible to transform the predictor in some way so that higher order terms 
  563. are not necessary. Terms higher than second or third order are not usually 
  564. used unless there is some reason inherent in the data. It is always possible 
  565. to fit a high enough order model, but such a model is difficult to interpret 
  566. and not generally recommended. 
  567.  
  568. (continues...)
  569. ##28
  570. (Polynomial Regression continued...)    
  571.  
  572.  
  573.                                                                                
  574. As with any regression model, extrapolation is dangerous and should be 
  575. avoided. While a polynomial model may adequately model the relationship 
  576. between variables within the range of the data used in the analysis, it is 
  577. extremely risky to assume that relationship continues to exist outside the 
  578. range of the data. Refer to a standard text, such as Neter and Wasserman or 
  579. Montgomery and Peck, for more information about polynomial regression. 
  580.  
  581. ##29  ##ALLPOSS
  582.                             All Possible Regressions
  583.                             ------------------------
  584.                           
  585. Also known as "best subset selection", this procedure consists of considering 
  586. all possible combinations of the predictor variables. Comparison can be based 
  587. on a number of criteria, including mean squared error, Mallow's Cp, and 
  588. R-Square. The calculated MSE is an estimate of the variance of the errors in 
  589. the full model. A smaller error variance is desirable, so different models 
  590. can be compared based on MSE, with those having a smaller MSE preferred. 
  591.  
  592. R-Square, the coefficient of determination, is a measure of how much of the 
  593. variability in the response is explained in the model, provided the model has 
  594. been arrived at properly. A model with larger R-Square is preferred to one 
  595. with a much smaller R-Square. 
  596.                           
  597. Mallow's Cp is a statistic which is a function of the error sum of squares 
  598. for the full model and that for the reduced model. Under the correct model, 
  599. Cp is approximately equal to p and otherwise is greater than p, reflecting 
  600. bias in the parameter estimates in the regression equation. Thus, it is 
  601. desirable to select a model in which the value of Cp is close to the number 
  602. of terms, including the constant term, in the model. 
  603.  
  604. (continues...)
  605. ##30
  606. All Possible Regressions (continued)
  607.                                            
  608. These three criteria are typically used to compare combinations, or subsets, 
  609. of the predictor variables. When KWIKSTAT reports the results of the All 
  610. Possible Regressions procedure, it reports all three of these criteria. Of 
  611. course, you should also take into account any theoretical criteria for 
  612. including or excluding variables, as well as be careful not to include 
  613. redundant variables, which may introduce collinearities. It is often helpful 
  614. to consider which variables consistently appear in the better models. The 
  615. better models can then be analyzed using the Multiple Regression option of 
  616. the Regression and Correlation Module in the regular KWIKSTAT program, and 
  617. the results of tests for significant coefficients considered in the final 
  618. decision. Residual plots of predicted values under the chosen model should 
  619. show a random scatter of points. 
  620.  
  621. Clearly, comparing all possible models is generally the best method for 
  622. making a decision about a "best" model since it provides the most information 
  623. about the available choices. However, the "all possible" subsets procedure 
  624. can become quite large with just a moderate number of predictors. KWIKSTAT 
  625. has the capability to perform All Possible Regressions on a maximum of eight 
  626. predictor variables. With eight variables, there are 28-1, or 255, possible 
  627. subsets, and the procedure can take some time. 
  628. ##31  ##STEPWISE
  629.                               Stepwise Selection
  630.                               ------------------
  631.  
  632. For a large number of predictors, or if for other reasons the All Possible 
  633. Regressions variable selection procedure is not practicable, an alternative 
  634. is the Stepwise variable selection procedure. KWIKSTAT's Stepwise option can 
  635. consider up to 49 variables, and can define a model using up to 20 of those 
  636. variables.. As noted earlier, the Stepwise procedure is a combination of 
  637. "forward selection" and "backward elimination" techniques. 
  638.  
  639. At the first step, the model consisting of all variables is considered, and 
  640. the variable testing "most significant", i.e., having the largest 
  641. F-statistic, becomes the first variable included in the model. In the second 
  642. step, the variable selected in the first step is forced into the model and 
  643. the other variables are then fit. A cut-off p-value is used as the selection 
  644. criteria to determine whether any more variables should be included. This 
  645. cut-off p-value selection criteria can be designated by you, or else the 
  646. default criteria used by KWIKSTAT is a p-value of 0.25 for the F-tests. Of 
  647. those variables meeting the selection criteria at step two, the one showing 
  648. the most significance, i.e., having the largest F-statistic, is added to the 
  649. model consisting of the variable selected in the first step. 
  650. ##32
  651. Stepwise Regression (continued)
  652.                                                 
  653. The two-variable model is then "checked" and if the coefficients of both 
  654. variables are shown to be significantly different from zero (having small 
  655. p-values), the process continues. Again, the cut-off p-value can be set by 
  656. you, or else the default is 0.25. At the third step, the two already chosen 
  657. variables are forced into the model and the other variables then fit. If any 
  658. remaining variables meet the selection criteria, the "most significant" of 
  659. those is added, and the three-variable model checked. The process continues 
  660. as long as all selected variables satisfy the "checking" procedure, and as 
  661. long as at least one remaining variable meets the selection criteria and is 
  662. added to the model at each "forward" step. The operator is also given the 
  663. opportunity at each step to continue or to stop the procedure. 
  664.  
  665. ##33  ##CUSTOM
  666.                       Customized Regression Calculations
  667.                       ----------------------------------
  668.  
  669. At times you may wish to perform a regression (least squares) calculation 
  670. that is different from those defined elsewhere in KWIKSTAT.  The Customized 
  671. Regression option allows you to place your own information directly into the 
  672. matrices that are used to perform a regression calculation. The regression 
  673. equation (in matrix form) can be written Y = Xb + e where Y is an array of the 
  674. dependent variables, X is a matrix containing information about the 
  675. independent variables, b (beta) is the array of coefficients for the 
  676. regression equation and e (an error term.) To calculate the beta array: 
  677.  
  678. 1. Create a database with columns representing the Y array and X matrix.
  679.  
  680. 2. In the Advanced Regression option, specify what variables in the database 
  681. contain the values for the Y array and for each column of the X matrix. 
  682.  
  683. 3. Choose the option to perform the calculation. The results are reported . 
  684.  
  685. The Custom Regression procedures assume that you have the mathematical
  686. background to devise the matrices needed for this kind of analysis. See the 
  687. manual for examples.
  688. ##34,Time Series Analysis ##TIME
  689.                              TIME SERIES ANALYSIS
  690.                              ====================
  691.  
  692. Time series analysis deals with attempting to model an observed series of 
  693. datapoints to forecast future activity or to understand the driving  mechanism.
  694. There are a number of approaches to modeling. This time series program bases
  695. its modeling techniques on the ARMA (autoregressive moving  average) approach. 
  696. In this approach, the researcher must first decide if there is an
  697. autoregressive (AR) and/or moving average (MA) component, and  the order of
  698. each.  These orders will be called p and q. Use p as  the order of the AR
  699. component and q as the order of the MA component. Thus, a model will be
  700. designated as an ARMA(p,q). For example, the model ARMA(8,0) means that the
  701. order of the AR component is 8 and the order of the MA component is 0 (none). 
  702. The goal is to find a model which adequately describes the process without
  703. using any extra parameters, a parsimonious model. 
  704.  
  705. The purpose of the KWIKSTAT Time Series program is to help you: 
  706. A) Decide what ARMA model is appropriate for your data.
  707. B) Estimate the parameters of the model.
  708. C) Create a forecast.
  709.  
  710. (continues...)
  711. ##35
  712. (TIME SERIES ANALYSIS continued...)
  713. Model Identification - The first part of the analysis process is model
  714. identification. One way to determine if the data are white noise is to examine
  715. the sample autocorrelations. If they are small and uncorrelated then the
  716. process may be white noise. If the process is white noise, then approximately
  717. 5% of the sample autocorrelations (absolute values) would be expected to be
  718. greater than 2/sqrt(n) where n is the length of the series. KWIKSTAT provides a
  719. test to help you decide what model is appropriate. The W-statistic (see
  720. Woodward and Gray) technique examines the data for fit to a series of models,
  721. and returns the three "best" guesses for a model. It does not necessarily
  722. choose the best model, but it is helpful in choosing which models to consider. 
  723.  
  724. Estimating Parameters - Once a model has been chosen, you may estimate the
  725. values of the parameters of the model given your set of data.
  726.  
  727. Forecasting - Once you have the estimates of a model, you can use this
  728. information to create a forecast. If the model estimates these to your
  729. satisfaction, then it may be a good model for forecasting into the future.
  730. KWIKSTAT allows you to forecast and plot future values of the series. An
  731. optional 95% confidence bound may be calculated to give you a range for your
  732. estimated forecast. 
  733. ##36,Quality Control Charts ##QCC
  734.                             QUALITY CONTROL CHARTS
  735.                             ======================
  736. The KWIKSTAT Quality Control module allows you to perform quality
  737. control calculations and produce several kinds of control charts:
  738.   o X-Bar Chart (Chart on Means)
  739.   o R-Chart (Chart on Ranges)
  740.   o S-Chart (Chart on Standard Deviations)
  741.   o Control Chart for Individual Measurments
  742.   o P-Chart (Chart on Proportions)
  743.  
  744. Options in displaying the control charts include:
  745.   o Plot all points or a range of points on a chart.
  746.   o Plot X-Bar and R-Chart on same screen.
  747.   o Plot Upper and Lower control limits.
  748.   o Use standard 3-sigma control limits or specify your own limits.
  749.   o Select a point on the control chart with the mouse
  750.     pointer or with a cursor pointer and display database values used
  751.     to calculate that point.
  752.   o Print chart to printer or capture to a PCX graphics file.
  753.   o Interactively select chart colors.
  754.   o Zoom in and out on portions of the plot to see more detail.
  755. ##37
  756.                   Preparing the Data for a Control Chart Plot
  757.                   -------------------------------------------
  758.                   
  759. The data for X-Bar or R-Charts should be stored in a database in the following
  760. format: 
  761.  
  762. The data that will be used to calculate the means to be plotted come from a 
  763. sample of observations, with each sample containing a number of replicates. 
  764. For example, you might take samples of jars filled with jelly 25 times during 
  765. the day. Each time you take a sample, it consists of 3 jars. Thus, you have 
  766. 25 samples, each with a size of 3 (3 replicates). The data for this chart 
  767. would be stored in a database using the following setup: 
  768.  
  769. Sample  Value                                            
  770. 1       15.9  
  771. 2       16.1  
  772. 3       16.0  
  773. 1       16.2  
  774. 2       15.9
  775. 3       15.6
  776. etc.
  777. (continues...)
  778. ##38            
  779. (Control Chart continued...)                                                   
  780.            
  781. Each jar should contain 16 ounces of jelly. You do not want the jars too 
  782. empty or too full. Thus, you may want to see that the average amount of jelly 
  783. does not go under or over certain limits. Also, you do not want the range to 
  784. be too wide -- which may mean that the "average" jar contains 16 ounces, but 
  785. the amount in different jars may vary widely. 
  786.  
  787. The database needed for this analysis would contain 2 fields, SAMPLE and VALUE.
  788.  
  789. To create this database, choose the Create a Database option from the FILE 
  790. menu. You can then choose to Create a custom database, or you could choose 
  791. the pre-defined database that contains 2 fields, where SAMPLE has a width of 
  792. 1 and VALUE has a width of 5 with 2 decimal places. Once you have created the 
  793. database, enter the data, one sample per record. 
  794.  
  795. You may use this data to display an X-Bar chart, and an R or S Chart.
  796.  
  797. Also, see the sample dataset named XCHART.DBF on your disk.
  798.  
  799. NOTE: A database for a control chart for individual measurements is similar 
  800. to the one described here, but there is only 1 replication per sample.
  801. ##39
  802.                               Displaying P-Charts      
  803.                               -------------------
  804.                               
  805. P-Charts plot a proportion of items observed from within a sample. For 
  806. example, you might take a sample of 25 items from a manufacturing process 
  807. each hour. Then you count the number of defects in that sample. You are 
  808. interested in plotting the proportion of defects across time to observe if an 
  809. unusually high number of defects begin to occur. The format for a KWIKSTAT 
  810. database is: 
  811.  
  812. Sample SampSize Defect1 Defect2  Defect3
  813.   1       25      0        1        2
  814.   2       25      0        0        0
  815.   3       25      1        1        0
  816.  etc.
  817.  
  818. For example, you might observe 3 kinds of defects, defect 1 is a color 
  819. problem, defect 2 is a weight problem and defect 3 is a function problem. 
  820. Thus, for sample 1 the proportion of defects found is 2/25. Using this same 
  821. database, you could also create a P-Chart that only considers defects of type 
  822. 3. In this case, you would choose only the SampleSize and Defect3 fields for 
  823. analysis, and the proportion observed for sample 1 would be 1/25. 
  824. (continues...)
  825. ##40
  826. (P-chart continued...)
  827.                                                          
  828. The minimum number of fields in the KWIKSTAT database needed for this chart 
  829. is two, a Sample Size field and a Count field. If there are more than one 
  830. Count (defects) fields, the program will add up the defect fields to
  831. calculate the proportion defects for that sample.
  832.  
  833. You do not need a SAMPLE field, but you may want one if the field will 
  834. contain information about the sample, such as the hour taken. Then, when you 
  835. display detailed information about a particular point, you can quickly 
  836. identify its source. 
  837.  
  838. To create this database, choose the Create a Database option from the FILE. 
  839. You can choose to Create a custom database, or you could use a pre-defined 
  840. structure that meets your needs. Once you have created the database, enter 
  841. the data, one sample per record, where each record includes a sample size 
  842. field and at least one count field. 
  843.  
  844. ##41,Pareto Charts ##PARETO
  845.                                 PARETO CHARTS
  846.                                 =============
  847. The Pareto chart is a specialized bar-chart used to determine priorities 
  848. for quality improvement. The items displayed in the chart are arranged in 
  849. decreasing order by frequency of occurance. KWIKSTAT allows you to read in 
  850. data to form a Pareto Chart in two ways:
  851.  
  852.   o Read data, calculate frequencies, display plot - KWIKSTAT
  853.     reads raw counts from a database similar to the frequency procedure. 
  854.  
  855.   o Read frequencies, display plot - In this case, KWIKSTAT reads
  856.     frequencies that have already been tabulated. 
  857.  
  858. Example: To create a chart by reading data, use a database with two fields 
  859. (e.g.,FAILURE & MACHINE) like this:
  860.      
  861.      FAILURE          MACHINE
  862.       Drift           1   
  863.       Drift           2
  864.       Tubing          2
  865.       etc:
  866.  
  867. KWIKSTAT can also "by" group charts.
  868. ##42,Multiple Comparisons ##MC
  869.                              MULTIPLE COMPARISONS
  870.                              ====================
  871.  
  872. KWIKSTAT provides three methods of performing multiple comparisons: Newman-
  873. Keuls, Tukey and Scheffe. Choose the default comparison test in the setup
  874. procedure. The default comparison will be used in Analysis of Variance
  875. comparison procedures. For some comparisons (i.e., Non-Parametic) the Tukey
  876. procedure will be used, no matter what default procedure you choose.
  877.  
  878. However, you can use the Mutliple Comparison module to perform comparisons that
  879. are not automatically provided as a part of another comparison procedure (i.e.,
  880. ANOVA), using any of the comparison types. This module also provides Dunnett's
  881. test for comparison of all other group means to a control.
  882.  
  883.  
  884. ##43,Using the FILE menu ##FILE
  885.                               USING THE FILE MENU
  886.                               ===================
  887.  
  888. NEW DATABASE  - Create a new database. You must create a new database and enter
  889. data before doing any analysis or creating a graph.
  890.  
  891. OPEN A DATABASE - Open an existing database.  
  892.  
  893. SUBSET DATABASE - Create a database that is a subset of the current database. 
  894.  
  895. COPY/BACKUP - Create a backup copy of a database for safety purposes.
  896.  
  897. LIST (DISPLAY) THE CONTENTS OF THE DATABASE - Display data to the screen.
  898.  
  899. MODIFY OR DISPLAY DATABASE STRUCTURE - View or change characteristics about the
  900. database, including field widths and types.
  901.  
  902. KILL DATABASE - Delete a database file from your disk.
  903.  
  904. FILE UTILITIES - Import data, create reports, sort a database or output data.
  905.  
  906. EXIT - End the program.
  907. ##44,Using the EDIT menu ##EDIT
  908.                 
  909.                               USING THE EDIT MENU
  910.                               ===================
  911.  
  912. The EDIT menu contains options that allow you to enter new data into a
  913. database, edit data currently in a database, and other editing options:
  914.  
  915. EDIT RECORDS - Change data already in the database.
  916.  
  917. APPEND RECORDS - Add new records to the database.
  918.  
  919. MISSING VALUE CODES - Define missing value codes for your database. Refer to
  920. the section titled "Setting Missing Value Codes" in Chapter 2 for the manual.
  921.  
  922. PACK DATABASE - Permanently erase all records marked for delete. 
  923.  
  924. ZAP - Get rid of all records in a database.
  925. ##45,Using the HELP menu ##HELP                  
  926.                               
  927.                               USING THE HELP MENU
  928.                               ===================
  929.  
  930. The KWIKSTAT Help system contains items to help you operate the program. These
  931. include:
  932.  
  933. Program Help - Contains general program help information.
  934.  
  935. TUTOR - Displays a tutorial to help you learn how to use the program.
  936.  
  937. Decide What Analysis to Use - Displays a decision tree similar to the one in
  938. Appendix E of this manual.
  939.  
  940. Change Setup Options - Select setup options including default path, colors,
  941. printer type, multiple comprison test, etc.
  942.  
  943. AUTOHELP/Hints (On or Off) - Toggles the help/hint messages that appear on
  944. some menus. 
  945.  
  946. Go to DOS, Return with Exit (Shell) - Temporarily shell to DOS.
  947. ##46 ##VIEW
  948.                           USING THE KWIKSTAT VIEWER
  949.                           =========================
  950.  
  951. The KWIKSTAT viewer allows you to examine output from an analysis that
  952. could be too big to appear on one screen. When the viewer appears, you
  953. can move around the displayed results by pressing the arrow keys, PgUp,
  954. PgDn, Home and End. If you are using a mouse, you can use the scroll
  955. bars on the right side and bottom to position the output on the screen.
  956. The function key commands available in the viewer are described below. To
  957. activate one of these commands, press the function key or click the option
  958. on the button bar at the bottom of the screen:
  959.  
  960. F1 - Display this help screen.
  961. F3 - Send setup code to printer (for condensed print, etc.)
  962. F5 - Goto a line in the output (Press F5, then enter a line number.)
  963. F7 - Exit the viewer.
  964. F8 - Define size of margin for output.
  965. F9 - Define a title to be used on output.
  966. F10 - Output the contents of the viewed file to a printer or file. When you
  967.       choose this option, the default output is the port you specified
  968.       in the program setup (i.e., LPT1: meaning line printer port 1). You
  969.       can press Enter to accept this default, or type a file name to
  970.       save the contents to a file.
  971. ##47 ##OPTIONS
  972.                         OPTIONS WHILE DISPLAYING A GRAPH
  973.                         ================================
  974.                        
  975. When a graph is displayed on your monitor, you can choose other 
  976. options from the plot menus.
  977.  
  978. The main graph menu appears at the top of the graph. To choose options from 
  979. this menu, press the first letter of the option name (i.e., E for Exit) or 
  980. point to the option with the mouse pointer and click the left button once. 
  981. Here is a description of the meau options. Depending on the graph, some of
  982. these options may not appear on your menu: 
  983.  
  984. o Exit - Exit the plot.                                                        
  985. o Options - Display the plot options screen, where you can change options,
  986.   then replot the graph.
  987. o Print - Print the graph to the printer.
  988. o Cap/PCX - Capture the graph as a .PCX file.
  989. o Set Colors - Display the color options menu.
  990. o + - Begin cursor pointing mode. See "Display Graph Detail Option" below.
  991. o Help - Display information about using the graph menu.
  992.  
  993. ##48
  994.                               Color Options Menu
  995.                               ------------------
  996.                                
  997. The color options menu allows you to choose what colors to use in
  998. displaying the graph. To choose options from this menu, press the
  999. first letter of the option name (i.e., E for Exit) or point to the
  1000. option with the mouse pointer and click the left button once. The
  1001. options are:
  1002.  
  1003. o Menu - Return to the main menu.                                              
  1004. o Graph - Change color of plot - cycles through 15 colors.
  1005. o Screen - Change background color - cycles through 15 colors.
  1006. o Text - Change text color - cycles through 15 colors
  1007. o Default - Returns graph to default colors.
  1008. o B&W - Displays plot in Black and White. It is usually best to display a plot
  1009.   in B&W mode before printing to a printer.
  1010. o Tile - In some plots, causes colors to be displayed as tile patterns.
  1011. o Help - Display help on using the graph menu.
  1012. ##49                                                                           
  1013.                           Display Graph Detail Option
  1014.                           ---------------------------
  1015.                           
  1016. On some graphs, you can choose to display information about specific points 
  1017. on the graph, or take a closer look at a particular portion of the graph. 
  1018. Using the point and look technique (SmartPoint (tm), you can quickly identify 
  1019. interesting points in the graph. For example, if several points are over the 
  1020. limit, you might discover immediately that all of these points came from 
  1021. samples taken from a single machine. When a chart is displayed, you can: 
  1022.  
  1023. o Smartpoint - Select a point on the graph, and display information about   
  1024. the database record associated with that point. 
  1025.  
  1026. o Take a closer look - Zoom the graph in and out to take a closer look at an   
  1027.   area of the plot.
  1028.  
  1029. Mouse technique - If you are using a mouse, select a point by moving the 
  1030. mouse pointer to the point you want to see, then click the left button once. 
  1031.  
  1032. Cursor technique - Choose the <+> option from the main menu by pressing + on 
  1033. the keyboard. A small "+" will appear in the middle of the graph. Use the 
  1034. arrow keys to move the "+" to the point on the graph, then press Enter. 
  1035. ##50 ##REPLACE  ##SUBSET
  1036.           Using Functions & Expressions in the REPLACE and SUBSET
  1037.           =======================================================
  1038.  
  1039. "REPLACE WITH" FIELD (in Replace option): Use either a math expression
  1040. or a database expression.
  1041.  
  1042. CONDITION FIELD (in Replace and Subset) : Use only a database expression.
  1043.  
  1044. A database expression allows many mathematical and character expressions,
  1045. as described below. The math expression is provided for performing
  1046. calculations using scientific mathematical functions. In the REPLACE WITH
  1047. field, the default expression type is the database type. In order for an
  1048. expression to be evaluated as a strictly math expression, you must place
  1049. an equal sign "=" at the beginning of the expression.
  1050.  
  1051. For example, if you want to perform the calculation WEIGHT/HEIGHT,
  1052. you can enter the expression as-is in the REPLACE WITH field.
  1053.  
  1054. (continues...)
  1055. ##51
  1056. (REPLACE & SUBSET continued...)
  1057.  
  1058. However, if you want to calculate the log of WEIGHT/HEIGHT, you
  1059. must enter the expression as
  1060.  
  1061. =LOG(WEIGHT/HEIGHT)
  1062.  
  1063. since the LOG function is not supported as a database expression
  1064. function. The equal sign signals to the program to use the math
  1065. calculator. The information below outlines the capabilities of both
  1066. expression types.
  1067.  
  1068. Mathematical operators:
  1069. Add      +        Subtract    -
  1070. Divide   /        Multiply    *
  1071. Exponentiation ^ (Math calculator only)
  1072.  
  1073. For Character fields, the database calculator supports the
  1074. operation: Add    + (appends one string to another)
  1075.  
  1076. (continues...)
  1077. ##52
  1078. (REPLACE & SUBSET continued...)
  1079.  
  1080. Following are a few examples of correct expressions:
  1081.  
  1082. AGE/HEIGHT
  1083. =SCORE^2 (= signals math calculator)
  1084. LTRIM(FIRST)+' '+LAST
  1085.  
  1086. Note: Literal strings included in expressions must be surrounded by
  1087. single quotes. For example, 'Hello' is a literal string. Character
  1088. field names are used without quotes. For example, NAME is a field
  1089. name. A correct string expression using these two strings would be:
  1090.  
  1091. 'Hello '+NAME
  1092.  
  1093. TIP: Only if you use a numeric operation or function not supported by
  1094. the database calculator will you need to place an equal (=) sign at
  1095. the first of the expression. For a list of the functions supported,
  1096. refer to Chapter 2 in the manual.
  1097.  
  1098. (continues...)
  1099. ##53
  1100. (REPLACE & SUBSET continued...)
  1101.  
  1102. Following are some example uses of functions in REPLACE or SUBSET:
  1103.  
  1104. ASC - Converts the first character of a string to its ASCII code.
  1105. For example, the function ASC('A') would return the value 65, since
  1106. 65 is the code for an uppercase A.
  1107.  
  1108. AT - Returns the starting position of one character string within
  1109. another character string. For example, the expression AT('Bill',
  1110. 'Wild Bill') = 5 since the string 'Bill' begins five characters
  1111. deep in the string 'Wild Bill'.
  1112.  
  1113. CALENDAR and JULIAN - The JULIAN function converts a date into a
  1114. number, where 1 is January 1, 1583. CALENDAR converts a julian
  1115. number into a Date. You can convert dates into numbers, then find
  1116. the number of days between dates by subtraction.
  1117.  
  1118. CAPS - Converts the first letter of each word into a capital. For
  1119. example, CAPS('this is a test') would become 'This Is A Test'.
  1120.  
  1121. (continues...)
  1122. ##54
  1123. (REPLACE & SUBSET continued...)
  1124.  
  1125. CHR - Converts a number into its ASCII value. For example, CHR(65)
  1126. is equal to the character string 'A'.
  1127.  
  1128. DELETED - Returns a T if the current record is marked for delete,
  1129. else it returns an F. Can be used to conditionally replace a value
  1130. depending on whether the record is deleted or not.
  1131.  
  1132. IIF - Selects between two expressions. The syntax is
  1133. IIF(logical expression, expression1, expression2). The logical
  1134. expression is either T or F. If the logical expression is T, then
  1135. returned value of this function is expression1, else the returned
  1136. value is expression2.
  1137.  
  1138. INT - Rounds down to nearest integer. INT(3.2) is equal to 3.
  1139.  
  1140. LEFT and RIGHT - Returns the left or right portion of a string. For
  1141. example, LEFT('Wild Bill',3) would return the string 'Wil' and
  1142. RIGHT('Wild Bill',3) would return the string 'ill'.
  1143.  
  1144. (continues...)
  1145. ##55
  1146. (REPLACE & SUBSET continued...)
  1147.  
  1148. LOWER and UPPER - Returns lower or upper case string. For example,
  1149. LOWER('Wild Bill') would return 'WILD BILL'.
  1150.  
  1151. LTRIM, RTRIM and TRIM - Trims blanks from right, left or both ends
  1152. of a string. For example, LTRIM('Wild Bill    ') would return 'Wild
  1153. Bill'. If the field FIRST contained the string 'Mark      ' (6 blanks on
  1154. the end) and the field LAST contained 'Walker       ' (7 blanks on the end),
  1155. the expression FIRST+LAST would be 'Mark      Walker       '. To obtain
  1156. the string 'Mark Walker' you would use RTRIM(FIRST)+' '+RTRIM(LAST).
  1157.  
  1158. SUBSTR - Extracts a string from the middle of a string. For
  1159. example, SUBSTR('Wild Bill',3,4) would be 'd Bi', which begins with
  1160. the 3rd character in the initial string, and is 4 characters long.
  1161. If the 4 were left off, the result would be 'd Bill' -- which is
  1162. the remainder of the string starting with the 3rd character.
  1163.  
  1164. VAL - Returns the value of a string. For example VAL('24') is the
  1165. number 24.
  1166. ---END OF HELP---
  1167.