home *** CD-ROM | disk | FTP | other *** search
/ Kids Cube / 7_Science.iso / sfg / sfprog.hlp < prev    next >
Text File  |  1993-12-15  |  18KB  |  390 lines

  1. Science Fair Graphs & Numbers Help Screens
  2. @1,OVERVIEW - Read This First!
  3. @2,Creating & entering data using Pre-Defined Database Structure
  4. @4,Creating & entering data using Customized Database Structure
  5. @5,Editing Data Already in a Database
  6. @6,Entering data from a DBASE III or VI FILE
  7. @7,Set up default disk path or disk drive
  8. @8,Using the viewer
  9. @9,Creating a new field & using functions 
  10. @15,Creating a Bar Chart
  11. @16,Creating a Pie Chart
  12. @17,Creating a scatter chart/regression line
  13. @18,Creating a time series plot
  14. ##1
  15.                               (~12~)OVERVIEW(~-1~)
  16.  
  17. Step-by-step overview for creating a graph:
  18.          1. Create a New Database
  19.          2. Enter Data
  20.          3. Choose Graph Type
  21.  
  22. Step-by-step overview for calculating statistics:
  23.          1. Create a New Database
  24.          2. Enter Data
  25.          3. Choose Statistical Calculations
  26.  
  27. This overview contains specific step-by-step information on creating graphs 
  28. and calculating statistics. EVERY procedure needs for you to first enter your 
  29. data -- so the recommended steps for learning the program are: 
  30.  
  31.          1. Learn how to enter data
  32.          2. Learn how to create graphs
  33.          3. Learn how to calculate statistics
  34.  
  35. ##2  ##DATA
  36.                   (~12~)HOW TO ENTER DATA - Step-by-Step(~-1~)
  37.  
  38. OVERVIEW - USING PRE-DEFINED DATABASE STRUCTURES:
  39.  
  40.         1. Choose the database type that matches your data                     
  41.         2. Enter data into the database
  42.  
  43. Before you create a graph, you need to enter the data into a database. SF G&N 
  44. is designed to create a database that matches your data. When you choose the 
  45. NEW DATABASE option from the file menu you will... 
  46.  
  47.         1. ENTER A NAME for your database -- choose a legal DOS
  48.         filename of up to 8 characters. Do not use blanks or
  49.         special characters not allowed in filenames. Legal filenames
  50.         are ones like : MYDATA, PROJECT, SCIENCE, DATA0994, JUNE94, etc.
  51.  
  52.         2. CHOOSE WHAT TYPE OF DATABASE to use from the list provided. 
  53.         The list includes entries such as:
  54.  
  55.                 BAR CHART: Label and Value
  56.                 PIE CHART: Label and Value
  57.                 BAR CHART, 2 Groups: Label, Two values
  58.                 BAR CHART Up to 5 Groups: Label, Five values and so on...
  59. ##3         
  60. For example, if you want to create a BAR CHART with two groups (for example, 
  61. data on males and females that will be use to plot side-by-side or stacked 
  62. bars, you would choose the third  description in this list 
  63.                                                                   
  64.                 BAR CHART: Label and Value                    
  65.                 PIE CHART: Label and Value                    
  66. -------->       BAR CHART, 2 Groups: Label, Two values
  67.                 BAR CHART Up to 5 Groups: Label, Five values  
  68.                 and so on...                                  
  69.  
  70. Once you have chosen what database type to use, you will be asked if you want 
  71. to enter data now. Normally, answer YES, then begin entering the data. 
  72.  
  73. HINT - IF AN EXAMPLE of the graph you want to create is in the manual, go 
  74. through that example before creating your own graph. 
  75. ##4 
  76. Sometimes, when a standard database structure does not fit your data, you 
  77. must create your own database structure. Here is how... 
  78.  
  79. OVERVIEW - CREATING A CUSTOMIZED DATABASE
  80.                                       
  81.          1. Create a database structure -- that is, what fields will
  82.             your database contain?
  83.          2. Enter data into the database.
  84.                                                           
  85. SPECIFIC STEPS:
  86.          1. Create the structure of your database by selecting the
  87.             "NEW DATABASE" option in the DATA menu, and enter a 
  88.             filename.
  89.  
  90.          2. Enter a description for each field to be used in your 
  91.             database. Fields that will hold numbers must be of the
  92.             type NUMERIC. Fields that hold labels are usually of
  93.             the type TEXT/CHARACTER.   
  94.  
  95.          3. End the creation be pressing CTRL-End
  96.  
  97. NOTE: Fields that hold information such as Social Security numbers, (i.e., 
  98. 455-98-1234) should NOT be called NUMERIC, they should be of TYPE 
  99. TEXT/CHARACTER, since they cannot be used in a numeric calculation such as 
  100. calculating a mean. 
  101. ##5
  102.                 (~12~)EDITING DATA ALREADY IN A DATABASE(~-1~)
  103.  
  104. 1. Open the database to be edited.
  105.                                              
  106. 2. Choose the EDIT option on the DATA menu.
  107.  
  108. 3. Edit the data in the data editor. 
  109.  
  110. 4. End data editing by choosing Exit (F7).
  111.  
  112. NOTE: To CREATE NEW FIELDS, choose the FIELD (F9) option in the data 
  113. editor. To enter data in a new field, put your cursor in that field, then 
  114. choose the FIELD (F9) REPLACE option. 
  115. ##6
  116.              (~12~)ENTERING DATA FROM A DBASE III or VI FILE(~-1~)
  117.  
  118. SFG reads data directly from dBASE III and IV files. In each module, you may 
  119. specify which dBASE file to use. The module will display all ".DBF" files in 
  120. the default path by listing them in a pick box. To choose the database to 
  121. use, press the up or down arrow keys to highlight the name of a database, 
  122. then press Enter. 
  123.  
  124. You may also call files from other directories by pressing the F2 key when 
  125. the database list appears. Specify another path for the program to search, 
  126. enter \DB3. A new pick list appears listing .DBF files in the specified path. 
  127. ##7   ##SETUP
  128.               (~12~)SET UP DEFAULT DISK PATH OR DISK DRIVE(~-1~)
  129.  
  130. In the Main SFG module, select the Setup Option on the HELPS menu to set up 
  131. the default disk drive or path. 
  132.  
  133. When asked to enter the default directory, just press Enter without entering 
  134. any specification if the data is stored in the same drive as the program (the 
  135. default directory). Otherwise, you can specify another subdirectory, such as 
  136. "MYDIR". To do this, enter 
  137.  
  138. \MYDIR\ or C:\MYDIR\
  139.  
  140. To use the B: drive as the default directory, enter the specification
  141.  
  142. B:\       (A MUST FOR 2-DISK SYSTEM USE!)
  143. ##8
  144.                           (~12~)USING THE VIEWER(~-1~)
  145.                                     
  146. The viewer allows you to examine output from an analysis that could be too 
  147. big to appear on one screen. When the viewer appears, you can move around the 
  148. displayed results by pressing the arrow keys, PgUp, PgDn, Home and End. If 
  149. you are using a mouse, you can use the scroll bars on the right side and 
  150. bottom to position the output on the screen. The function key commands 
  151. available in the viewer are described below. To activate one of these 
  152. commands, press the function key or click the option on the button bar at the 
  153. bottom of the screen: 
  154.  
  155. F1 - Display this help screen.
  156. F3 - Send setup code to printer (for condensed print, etc.)
  157. F5 - Goto a line in the output (Press F5, then enter a line number.)
  158. F7 - Exit the viewer.
  159. F8 - Define size of margin for output.
  160. F9 - Define a title to be used on output.
  161. F10 - Output the contents of the viewed file to a printer or file. When you
  162.       choose this option, the default output is the port you specified
  163.       in the program setup (i.e., LPT1: meaning line printer port 1). You
  164.       can press Enter to accept this default, or type a file name to
  165.       save the contents to a file.
  166. ##9 ##REPLACE  ##SUBSET
  167.      Using Functions & Expressions in the REPLACE and SUBSET Options
  168.      ---------------------------------------------------------------
  169.  
  170. "REPLACE WITH" FIELD (in Replace option): Use either a math expression or a 
  171. database expression. 
  172.  
  173. CONDITION FIELD (in Replace and Subset) : Use only a database expression.
  174.  
  175. A database expression allows many mathematical and character expressions, as 
  176. described below. The math expression is provided for performing calculations 
  177. using scientific mathematical functions. In the REPLACE WITH field, the 
  178. default expression type is the database type. In order for an expression to 
  179. be evaluated as a strictly math expression, you must place an equal sign "=" 
  180. at the beginning of the expression. 
  181.  
  182. For example, if you want to perform the calculation WEIGHT/HEIGHT, you can 
  183. enter the expression as-is in the REPLACE WITH field. 
  184.  
  185. (continues...)
  186. ##10
  187. (REPLACE & SUBSET continued)
  188.  
  189. However, if you want to calculate the log of WEIGHT/HEIGHT, you must enter 
  190. the expression as 
  191.  
  192. =LOG(WEIGHT/HEIGHT)
  193.  
  194. since the LOG function is not supported as a database expression function. 
  195. The equal sign signals to the program to use the math calculator. The 
  196. information below outlines the capabilities of both expression types. 
  197.  
  198. Mathematical operators:
  199. Add      +        Subtract    -
  200. Divide   /        Multiply    *
  201. Exponentiation ^ (Math calculator only)
  202.  
  203. For Character fields, the database calculator supports the operation: 
  204. Add + (appends one string to another) 
  205.  
  206. (continues)
  207. ##11
  208. (REPLACE & SUBSET continued)
  209.  
  210. Following are a few examples of correct expressions:
  211.  
  212. AGE/HEIGHT
  213. =SCORE^2 (= signals math calculator)
  214. LTRIM(FIRST)+' '+LAST
  215.  
  216. Note: Literal strings included in expressions must be surrounded by
  217. single quotes. For example, 'Hello' is a literal string. Character
  218. field names are used without quotes. For example, NAME is a field
  219. name. A correct string expression using these two strings would be:
  220.  
  221. 'Hello '+NAME
  222.  
  223. TIP:Only if you use a numeric operation or function not supported by the 
  224. database calculator will you need to place an equal (=) sign at the first of 
  225. the expression. For a list of the functions supported, refer to Chapter 2 in 
  226. the manual. 
  227.  
  228. (continues...)
  229. ##12
  230. REPLACE & SUBSET continued)
  231.  
  232. Following are some example uses of functions in REPLACE or SUBSET:
  233.  
  234. ASC - Converts the first character of a string to its ASCII code. For 
  235. example, the function ASC('A') would return the value 65, since 65 is the 
  236. code for an uppercase A. 
  237.  
  238. AT - Returns the starting position of one character string within another 
  239. character string. For example, the expression AT('Bill', 'Wild Bill') = 5 
  240. since the string 'Bill' begins five characters deep in the string 'Wild 
  241. Bill'. 
  242.  
  243. CALENDAR and JULIAN - The JULIAN function converts a date into a number, 
  244. where 1 is January 1, 1583. CALENDAR converts a julian number into a Date. 
  245. You can convert dates into numbers, then find the number of days between 
  246. dates by subtraction. 
  247.  
  248. CAPS - Converts the first letter of each word into a capital. For example, 
  249. CAPS('this is a test') would become 'This Is A Test'. 
  250.  
  251. (continues...)
  252. ##13
  253. (REPLACE & SUBSET continued)
  254.  
  255. CHR - Converts a number into its ASCII value. For example, CHR(65) is equal 
  256. to the character string 'A'. 
  257.  
  258. DELETED - Returns a T if the current record is marked for delete, else it 
  259. returns a F. Can be used to conditionally replace a value depending on if the 
  260. record is deleted or not. 
  261.  
  262. IIF - Selects between two expressions. The syntax is IIF(logicalexpression, 
  263. expression1, expression2). The logical expression is either T or F. If the 
  264. logical expression is T, then returned value of this function is expression1, 
  265. else the returned value is expression2. 
  266.  
  267. INT - Rounds down to nearest integer. INT(3.2) is equal to 3. 
  268.  
  269. LEFT and RIGHT - Returns the left or right portion of a string. For example, 
  270. LEFT('Wild Bill',3) would return the string 'Wil' and RIGHT('Wild Bill',3) 
  271. would return the string 'ill'. 
  272.  
  273. (continues...)
  274. ##14
  275. (REPLACE & SUBSET continued)
  276.  
  277. LOWER and UPPER - Returns lower or upper case string. For example, 
  278. LOWER('Wild Bill') would return 'WILD BILL'. 
  279.  
  280. LTRIM, RTRIM and TRIM - Trims blanks from right, left or both ends of a 
  281. string. For example, LTRIM('Wild Bill    ') would return 'Wild Bill'. If the 
  282. field FIRST contained the string 'Mark      ' (6 blanks on the end) and the 
  283. field LAST contained 'Walker       ' (7 blanks on the end), the expression 
  284. FIRST+LAST would be 'Mark      Walker       '. To obtain the string 'Mark 
  285. Walker' you would use RTRIM(FIRST)+' '+RTRIM(LAST). 
  286.  
  287. SUBSTR - Extracts a string from the middle of a string. For example, 
  288. SUBSTR('Wild Bill',3,4) would be 'd Bi', which begins with the 3rd character 
  289. in the initial string, and is 4 characters long. If the 4 were left off, the 
  290. result would be 'd Bill' -- which is the remainder of the string starting 
  291. with the 3rd character. 
  292.  
  293. VAL - Returns the value of a string. For example VAL('24') is the number 24.
  294. ##15
  295.                         (~12~)CREATING A BAR CHART(~-1~)
  296.  
  297. Create the database and enter the data (see Creating a Database). Your
  298. database should look something like this:
  299.  
  300. - It should contain a Label field & a Value field (the value field contains 
  301. the numbers to use for the plot.) For example: the MAGNET is the LABEL field 
  302. and NAILS is the VALUE field.
  303.  
  304.           ----these are the fields-----
  305. RECORD        MAGNET     NAILS
  306.               ------     ------
  307. 1              SMALL      38    ─┐
  308. 2              MEDIUM     46     │──- this is the data to plot
  309. 3              LARGE      59    ─┘
  310.                  │
  311.                  └─────────────────── these are the labels for the plot
  312.  
  313. NOTE: This will create a BAR CHART with 3 bars labeled SMALL, MEDIUM & LARGE.
  314. You could also use this same data to create a pie chart NOTE: You can have 
  315. more than one value field, & create a side-by-side bar chart or a stacked 
  316. bar chart. This data can also be used for a line chart or an area chart.
  317. ##16
  318.                         (~12~)CREATING A PIE CHART(~-1~)
  319.  
  320. Create the database and enter the data (see Creating a Database). Your
  321. database should look something like this:
  322.                                                                               
  323. - It should contain a Label field                                             
  324. - It should contain a Value field (contains the numbers to use for the plot)
  325.                                                                               
  326. For example: the COLOR is the LABEL field and COUNT is the VALUE
  327. field. This data refers to hair color for 50 people in your class.
  328.                                                                               
  329.         ----these are the fields-----                                         
  330. RECORD        COLOR      COUNT
  331.               ------     ------                                               
  332. 1              BLONDE      9    ─┐
  333. 2              BROWN      14     │──- this is the data to plot
  334. 3              BLACK      22    ─┘
  335. 4              RED         5
  336.                  │                                                            
  337.                  └─────────────────── these are the labels for the plot
  338.  
  339. This will create a PIE CHART with 4 slices. You could also use the same 
  340. database to create a bar chart.
  341. ##17
  342.               (~12~)CREATING A SCATTER CHART/REGRESSION LINE(~-1~)
  343.                                                                               
  344. Create the database and enter the data (see Creating a Database). Your        
  345. database should look something like this:                                     
  346.                                                                               
  347. - It should contain a GROUP field (if you have more than one group)
  348. - It should contain two or more value fields (contains the numbers to use
  349. for the plot)
  350.                                                                               
  351. For example: the SEX is the GROUP field and Height and Weight fields are the
  352. VALUE fields.
  353.                                                                               
  354.               ----these are the fields-----
  355. RECORD          SEX      HEIGHT    WEIGHT
  356.               ------     ------    ------
  357. 1                M         70      202     ─┐
  358. 2                M         65      145      │──- this is the data to plot
  359. 3                M         72      188     ─┘
  360. :                F         60      103
  361. 22               F         62      122
  362. 23               F         59      112
  363.                  └─────────────────── this is the group field
  364.                                                                               
  365. This will create a SCATTERPLOT and REGRESSION LINE PLOT.
  366. ##18
  367.                    (~12~)CREATE A TIME SERIES/LINE PLOT(~-1~)
  368.                                                                                
  369. Create the database and enter the data (see Creating a Database). Your
  370. database should look something like this:
  371.                                                                                
  372. Data should contain one or more value fields and an optional label field. 
  373. For example: Sales1 is a VALUE field for team1 and Sales2 for team2. 
  374. Data is in time order. In this example, sales for a month are:
  375.                                                                                
  376.          ----these are the fields-----                                         
  377.  RECORD   DAY      SALES1     SALES2
  378.           ----     ------     ------
  379.  1         1         4          3      ─┐
  380.  2         2         5          4       │──- this is the data to plot
  381.  3         3         6          4      ─┘
  382.  :                   4          5
  383.  31       23         6          5
  384.           ───────────────────────             
  385.                   └─────────────────── these are the group fields
  386.                                                                                
  387.  This will create a TIME SERIES PLOT with two lines.
  388.  
  389. ---END OF HELP---
  390.