11.07.2015 Views

[U] User's Guide

[U] User's Guide

[U] User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

viii21.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31521.2 Determining which input method to use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31621.2.1 Entering data interactively . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31621.2.2 Copying and pasting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31721.2.3 If the dataset is in binary format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31721.2.4 If the data are simple . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31721.2.5 If the dataset is formatted and the formatting is significant . . . . . . . . . 31821.2.6 If there are no string variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31921.2.7 If all the string variables are enclosed in quotes . . . . . . . . . . . . . . . . . . 32021.2.8 If the undelimited strings have no blanks . . . . . . . . . . . . . . . . . . . . . . . . 32121.2.9 If you make it to here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32121.3 If you run out of memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32121.4 Transfer programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32221.5 ODBC sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32221.6 Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32322 Combining datasets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32523 Working with strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32723.1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32723.2 Categorical string variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32723.3 Mistaken string variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32823.4 Complex strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32923.5 Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33024 Working with dates and times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33124.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33124.2 Inputting dates and times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33324.3 Displaying dates and times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33624.4 Typing dates and times (date/time literals) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33724.5 Extracting components of dates and times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33724.6 Converting between date and time values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33724.7 Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33825 Working with categorical data and factor variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33925.1 Continuous, categorical, and indicator variables . . . . . . . . . . . . . . . . . . . . . . . . . . . 33925.1.1 Converting continuous variables to indicator variables . . . . . . . . . . . . . 34025.1.2 Converting continuous variables to categorical variables . . . . . . . . . . . . 34025.2 Estimation with factor variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34225.2.1 Including factor variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34325.2.2 Specifying base levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34425.2.3 Setting base levels permanently . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34525.2.4 Testing significance of a main effect . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34625.2.5 Specifying indicator (dummy) variables as factor variables . . . . . . . . . . 34625.2.6 Including interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34725.2.7 Testing significance of interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34925.2.8 Including factorial specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34925.2.9 Including squared terms and polynomials . . . . . . . . . . . . . . . . . . . . . . . . 35025.2.10 Including interactions with continuous variables . . . . . . . . . . . . . . . . . . 35025.2.11 Parentheses binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35225.2.12 Including indicators for single levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35325.2.13 Including subgroups of levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35525.2.14 Combining factor variables and time-series operators . . . . . . . . . . . . . . 355

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

Saved successfully!

Ooh no, something went wrong!