NCSS Statistical Software



Similar documents
A Guide to Stat/Transfer File Transfer Utility, Version 10

XII USER MANUAL. Version12

How To Write A File System On A Microsoft Office (Windows) (Windows 2.3) (For Windows 2) (Minorode) (Orchestra) (Powerpoint) (Xls) (

Importing and Exporting Databases in Oasis montaj

Importing Data from a Dat or Text File into SPSS

SPSS for Windows importing and exporting data

SAS/ACCESS 9.3 Interface to PC Files

Basics Series-4004 Database Manager and Import Version 9.0

SPM Users Guide. This guide describes the common infrastructure of SPM application and introduces facilities that are used throughout the application.

Using Stat/Transfer on the Linux/UNIX Systems

How To Read Data Files With Spss For Free On Windows (Spss)

How to Import Data into Microsoft Access

Importing and Exporting With SPSS for Windows 17 TUT 117

SPSS: Getting Started. For Windows

Converting Excel Spreadsheets or Comma Separated Values files into Database File or Geodatabases for use in the USGS Metadata Wizard

Microsoft Access Rollup Procedure for Microsoft Office Click on Blank Database and name it something appropriate.

PrintShop Mail Database Fundamentals Guide

SPSS 12 Data Analysis Basics Linda E. Lucek, Ed.D

Using Microsoft Access Databases

Time Clock Import Setup & Use

FrontStream CRM Import Guide Page 2

Importing Data into R

Coupling Microsoft Excel with NI Requirements Gateway

Word 2010: Mail Merge to with Attachments

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

Mail Merge Creating Mailing Labels 3/23/2011

Introduction to PASW Statistics

Converting Microsoft Access 2002 to Pipe-Delimited ASCII Text Files

Microsoft Access 2010: Basics & Database Fundamentals

CHAPTER 8: MANAGING LEADS

Creating Codes with Spreadsheet Upload

Introduction to IBM SPSS Statistics

USING P3 VERSION 3.1 IMPORT AND EXPORT FUNCTIONS WITH THE DBF FILE FORMAT AND EXCEL PAUL E HARRIS EASTWOOD HARRIS

Customizing component reports Tutorial

EXCEL IMPORT user guide

Title. Syntax. stata.com. odbc Load, write, or view data from ODBC sources. List ODBC sources to which Stata can connect odbc list

Radius Maps and Notification Mailing Lists

Using SPSS, Chapter 2: Descriptive Statistics

Advanced Excel 10/20/2011 1

Us ing the Order To Cas h (OTC) Dashboard

Instructions for applying data validation(s) to data fields in Microsoft Excel

FrontPage 2003: Forms

Creating an Excel Spreadsheet for Mail Merge. Excel Spreadsheet Mail Merge. 1 of 9 Design & Print Offline: Mail Merge

Pharmacy Affairs Branch. Website Database Downloads PUBLIC ACCESS GUIDE

MoCo SMS Suite Quick Guides for Direct Marketing and CRM

Avery Dennison UK Consumer Helpline: Consumer

Groundwater Chemistry

William E Benjamin Jr, Owl Computer Consultancy, LLC

The first thing to do is choose if you are creating a mail merge for printing or an merge for distribution over .

User Manual - Sales Lead Tracking Software

Introduction to SPSS 16.0

MS Excel Template Building and Mapping for Neat 5

Introduction to Microsoft Access 2003

Creating and Managing Online Surveys LEVEL 2

Project Zip Code. User Manual

QDA Miner Qualitative Data Analysis Software

Affiliate Program CSV Export User Guide

Microsoft Office. Mail Merge in Microsoft Word

MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11

Indiana County Assessor Association Excel Excellence

Work with the MiniBase App

Software Application Tutorial

Grading and Survey Solution

Getting Started with Access 2007

WorldShip Import Customer Addresses

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Using Delphi Data with Excel and Access

Creating a Database in Access

A QUICK INTRODUCTION TO MINITAB 15

Create a New Database in Access 2010

How To Use Optimum Control EDI Import. EDI Invoice Import. EDI Supplier Setup General Set up

EPO Online Filing. Advanced tutorials. Version 5.00 (Release 5.00) Copyright European Patent Office All rights reserved

Scheduling Data Import from Avaya Communication Manager into Avaya Softconsole MasterDirectory

Spreadsheet - Introduction

Mail Merge. Course Description. Objectives: Design a Main Document. Design a Data Source. Directories. Merge the Main Document with the Data

Introduction to the TI Connect 4.0 software...1. Using TI DeviceExplorer...7. Compatibility with graphing calculators...9

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Microsoft Business Contact Manager Version 2.0 New to Product. Module 4: Importing and Exporting Data

Basic Pivot Tables. To begin your pivot table, choose Data, Pivot Table and Pivot Chart Report. 1 of 18

Creating and Using Databases with Microsoft Access

Data Tool Platform SQL Development Tools

What is a Mail Merge?

Note: With v3.2, the DocuSign Fetch application was renamed DocuSign Retrieve.

Database File. Table. Field. Datatype. Value. Department of Computer and Mathematical Sciences

2. The Open dialog box appears and you select Text Files (*.prn,*.txt,*.csv) from the drop-down list in the lower right-hand corner.

USING WORDPERFECT'S MERGE TO CREATE MAILING LABELS FROM A QUATTRO PRO SPREADSHEET FILE Click on a Step to move to the next Step

Visualization with Excel Tools and Microsoft Azure

Linking Telemet Orion to a Portfolio Accounting System

CONTACTS SYNCHRONIZER FOR IPAD USER GUIDE

Introduction to IBM Watson Analytics Data Loading and Data Quality

CHAPTER 7 PROCESSING SURVEY DATA

Chapter 4b - Navigating RedClick Import Wizard

Analyzing Excel Data Using Pivot Tables

Accounts Receivable: Importing Remittance Data

Transcription:

Chapter 115 Introduction NCSS can import from a wide variety of spreadsheets, databases, and statistical systems. When you import a file, the entire dataset is replaced with the imported data, so make sure that your data are saved before performing this operation. You will be prompted to save your data before performing the import if your data have not yet been saved. If you are importing from a database file like Access with more than one table non-empty table, you will be asked to select one table to import. If you are importing from a spreadsheet program like Excel with more than one non-empty sheet, you will be asked to select one or more sheets to import. The table below presents a list of the types of files that can be imported by NCSS. List of Imported Files File Name File Type File Extension Access Database ACCDB, MDB dbase Database DBF Epi Info Database REC Excel Spreadsheet XLSX, XLS Gauss Stat System DAT JMP Stat System JMP LimDep Stat System CPJ Lotus 123 Spreadsheet WK1, WK3 Matlab Stat System MAT Minitab Stat System MTW NCSS 97-2007 Spreadsheet Stat System S0 NCSS 97-2007 Database Stat System S0Z Paradox Database DB Quattro Pro Spreadsheet WKQ, WB*, WQ* R Stat System RDATA SAS Stat System SD2, SAS7BDAT, XPT, TPT SPLUS Stat System DAT SPSS Stat System SAV, POR Stata Stat System DTA Statistica Stat System STA Symphony Spreadsheet WR1, WRK Systat Stat System SYS, SYZ Text (Delimited) Text File TXT, CSV Text (Fixed-Width) Text File TXT, PRN Import Limitations You will likely run out of memory if the file you are importing results in more than about 25 million cells. You should limit the number of columns you are importing if you have a very large number of rows. 115-1

How to Import a File The Import Wizard guides you through the steps of importing a file. Follow the on-screen instructions to complete the import. Selecting a File to Import Before the Import Wizard starts, you must select the type of file to import. To do this, select File > Import from the Data Window menu and then select the type of file to import. The most-commonly imported files are displayed in the call-out menu. If the file type you want to import is not on this list, select Other File. Either way, this will bring up a file selection dialog prompting you to select a file to import. You can change the file type by clicking on the dropdown box at the bottom of the dialog window near the File Name box. When you click the dropdown box, a complete list of importable file types will be displayed. Select the file type you want, navigate to and select the file on your computer, and then click Open. This will start the Import Wizard with the selected file. You cannot change the file after the wizard has started; to change the file you must cancel the wizard and start again. The Import Wizard Once you have selected a file to import, the Import Wizard will guide you through the steps necessary to import a file. The number of steps and the information required in the wizard depend on the type of file you are importing. There are three basic steps: 1. Data File Preview 2. Choosing How Columns are Imported 3. Running the Import Operation Data File Preview You will first be presented with a preview of the data file you have selected to import. This will show you the data as it exists in the data file before it is imported. For some file types, you will be prompted to provide additional information about the file you are importing. The information is described later in this chapter. Choosing How Columns are Imported The final step of the Import Wizard will ask you to select the columns to import and specify the data type of each imported column. There are three possible data types: General (Numeric or Text), Text, and DateTime. By default, the data type of each imported column is set to General, which accepts numeric and text values. We will now briefly describe how each data type affects the imported data. General (Numeric or Text) The General data type is the default data type for NCSS dataset columns. Data may either be text values or numeric. Dates are treated as text. Numeric values in columns with Data Type = General are converted to 16-digit floating-point numbers. Non-numeric text values as not converted. Text The Text data type is useful when you have large numeric identification values that you do not want converted to 16-digit floating-point numbers. Numeric text values will still be interpreted as numbers in transformations and calculations for data analysis. 115-2

For example, if the value 9876543212345678987654321 is imported with Data Type = General, it will be converted to the maximum floating-point representation of 9.87654321234568E+24. Some of the digits are removed because a floating point number can only store up to 16 digits. If the same value is imported with Data Type = Text, the imported value will maintain all of the digits 9876543212345678987654321 because it is stored as a text value. DateTime The DateTime data type is useful when you want to format numeric values as dates. DateTime values are considered numeric in transformation and data analysis calculations. Data values in DateTime data columns are still stored with 16-digit floating point accuracy even though they are formatted as dates and times. Running the Import Operation Finally, press the Finish button to run the import. When you import a file, the entire dataset is replaced with the imported data, so make sure that your data are saved before performing this operation. You will be prompted to save your data before performing the import if your data have not yet been saved. The import operation will import only those columns you have selected. Once you have imported a data file, we suggest you save it as an NCSS dataset with extension *.NCSS. Remember, the file exists only in your computer s memory until it is saved. If you want to avoid importing the file over and over, save it as an NCSS dataset after you have imported it. Special Instructions for Certain File Types Some file types require additional information to complete the import procedure. This section explains the additional information that is required by these file types. General Text File Options NCSS can import data from either delimited or fixed-width text (or ASCII) files. These files may have the extensions *.txt, *.prn, or *.csv. Files with the extension *.txt may either be delimited or fixed-width. Files with the extension *.prn must fixed-width. Files with the extension *.csv are always comma-delimited. When importing either delimited or fixed-width text files, you must specify the Number of Lines per Record and the Record Containing Column Names (if any). Number of Lines per Record This option specifies how many rows in a text file are to be considered as a single row in the resulting dataset. This is usually set to 1. Record Containing Column Names This option specifies which row in the text file (if any) contains the labels that will be used as column names. As you change this number, the text file preview will highlight the selected row in red. If there are not any column names in the file, set this option to None. Importing Delimited Text Files A delimited text file is one whose columns are separated by some character that is consistent through the whole file. Commonly, delimited text files have columns separated by a comma or a tab character. When importing a delimited text file, you must specify what character is used to separate columns in the file. The Import Wizard will try to determine from the text file itself, which character is used. If the wizard does not automatically select 115-3

the correct character, you can change it to one of the available options. If you choose Other, then you must specify a delimiter in the box provided. The preview at the bottom of the screen will show you how the data will appear after import if the selected delimiter is used. Importing Fixed Width Text Files A fixed width (or fixed format) text file is one in which each data value occurs at the same position on each row, with each column represented by a fixed number of characters. The data may appear as a solid string of numbers. A format statement is needed to tell the program how to break the data apart into columns. Specify the Fixed The fixed width syntax is based on three single-letter commands and the slash character. These commands are combined to form the format statement. These commands will be discussed next, followed by examples of format statements. C is for Variable The character C is used to designate a column. The actual syntax is rcn. The r indicates the number of times the format segment is repeated. The n represents the number of positions (characters) that are used. If r is omitted, it is assumed to be one. Following are some examples of this type of format. C1 C3 2C4 3C1,2C2 The column is the next single character on the row. The column is the next three characters on the row. Two columns, each four characters long. Three columns that are each one character long followed by two columns that are each two characters long. X is for Skip The character X is used to designate the skipping of certain character positions on the row. The actual syntax is Xn. The n represents the number of positions (characters) that are skipped. Following are some examples of this type of format. X1 X2 X25 X2,X8 Skip the next character position along the row. Skip the next two character positions along the row. Skip the next twenty-five character positions along the row. Skip two and then eight character positions. Of course, you would usually write X10 instead. T is for Transfer The character T is used to transfer to a specific character position on the current row. This character position becomes the next position processed by the format decoder. If your format includes multiple rows, you cannot use the T command to move back to a previous row or ahead to the next row. T1 T22 Transfer to the first position. Transfer to position twenty-two. / is for Next Row The character / is used to transfer to the beginning of the next row. 115-4

Examples of Fixed Statements The above format commands, except for the slash, are put together using commas. The slash serves as its own separator and does not need to be combined with a comma. Note that the values are assigned to the dataset columns in sequence. Below are some examples of how these format commands can be placed together to form the format statement. File Segment Statement Interpreted Values 12345 7890 10C1 1, 2, 3, 4, 5, missing value, 7, 8, 9, 10 12 4567890 5C2 12, 4, 56, 78, 90 1234567890 C2,X4,C3 12, 789 1234567890 C2,T7,C3 12, 789 1234567890 C3,T1,3C1 123, 1, 2, 3 1234567890 C2,C3,C5 12, 345, 67890 1234567890 (combined with the next line) 2345678901 2C5/C3 12345, 67890, 234 Importing SAS or Access Files Each Microsoft Access database contains one or more tables. Each table may be thought of as an independent database. When you are importing data from an Access database, you will have to designate a single table to import. Each table has its own set of columns. Only one Access table may be imported at a time. Some SAS files also include multiple tables. You can only import one table at a time from these files as well. File Encoding For some file types (dbase, Epi Info, Gauss, JMP, LimDep, Lotus 123, Matlab, Minitab, Paradox, Quattro, R, SAS, SPlus, SPSS, Stata, Statistica, Symphony, and Systat) you must specify the file encoding. NCSS will attempt to determine what file encoding is appropriate for the source file, but sometimes errors related to the file encoding do occur. If you do not specify a file encoding and NCSS is unable to determine the appropriate encoding, then the default system encoding will be used. If the file you are importing contains non-english or non-ascii characters, we suggest that you review the data after the import is complete to make sure that these characters were imported correctly. If they were not, try importing the file again using a different source file encoding. 115-5