WSL Course Introduction to Statistics Software, Installation and Use



Similar documents
Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

Computer Science and Engineering MacOS Cisco VPN Client Installation and Setup Guide

How to Install the Cisco AnyConnect VPN Client. Installing Cisco AnyConnect VPN Client on Windows with the Chrome Browser (Recommended)

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

1. To ensure the appropriate level of security, you will need Microsoft Windows XP or above.

POOSL IDE Installation Manual

Pulse Secure Client. Customization Developer Guide. Product Release 5.1. Document Revision 1.0. Published:

Getting Started with Tableau Server 6.1

Towson University s VPN Virtual Private Network

Bitrix Site Manager 4.1. User Guide

2. Installation Instructions - Windows (Download)

Kerberos authentication between multiple domains may fail on LiveCycle Rights Management ES 8.2.1

AES Crypt User Guide

Introduction to the use of the environment of Microsoft Visual Studio 2008

Olathe District Schools 1 of 11 GroupWise 7

Back-up Server DOC-OEMSPP-S/2014-BUS-EN-10/12/13

Virtual Private Server Manual

WatchDox for Windows. User Guide. Version 3.9.5

Parallels Desktop Enterprise Edition

FTP Updates. Hiden Analytical Limited 420 Europa Boulevard Warrington WA5 7UN England. Tel: +44 (0) Fax: +44 (0)

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

Quick Guide: Troubleshooting Info from SNAP PAC Systems

Practice Fusion API Client Installation Guide for Windows

L.E.A.P.S Electronic Freight Billing System Installation Guide

CEFNS Web Hosting a Guide for CS212

Manual English KOI Desktop App 2.0.x

HWS Virtual Private Network Configuration and Setup Mac OS X 12/19/2006

These instructions were tested on OS X Earlier or later versions may have slight or major differences in how things work and appear.

How to Configure Windows 8.1 to run ereports on IE11

Getting Started using the SQuirreL SQL Client

VP-ASP Shopping Cart Quick Start (Free Version) Guide Version 6.50 March

Manual for Configuring Cisco Any Connect Secure Mobility Client in Linux Red Hat

Check current version of Remote Desktop Connection for Mac.. Page 2. Remove Old Version Remote Desktop Connection..Page 8

5nine Hyper-V Commander

Changing Your Cameleon Server IP

AUSTRALIAN CUSTOMS AND BORDER PROTECTION SERVICE TYPE 3 CERTIFICATE 2014 INSTALLATION GUIDE

Ahsay Online Backup Suite v5.1. Installers Customization

How to Configure Windows 7 to run ereports on IE 11

Hypercosm. Studio.

The 2013 Experimental Warning Program (EWP) Virtual Weather Event Simulator (WES) Windows & Linux Installation Documentation

Client applications are available for PC and Mac computers and ios and Android mobile devices. Internet

The Reprographics Online E-Copy Process is used to submit print jobs to the RUSD Reprographics department.

HP ARCHIVING SOFTWARE FOR EXCHANGE

IBM Information Server

Installing the Virtual Desktop Application (MAC)

WatchDox for Mac User Guide

Using WS_FTP. This tutorial explains how to use WS_FTP, a File Transfer Program for Microsoft Windows. INFORMATION SYSTEMS SERVICES.

Configuring a Custom Load Evaluator Use the XenApp1 virtual machine, logged on as the XenApp\administrator user for this task.

Software Development Environment. Installation Guide

vtcommander Installing and Starting vtcommander

Choosing your Preferred Colours in Windows

Virtual Office Remote Installation Guide

Connecting to Remote Desktop Windows Users

JORAM 3.7 Administration & Monitoring Tool

User Guide. (Single User Version) 2008 Certiport, Inc. certiprep 1

WatchDox for Windows User Guide. Version 3.9.0

How To Install the Virtual Learning App

Acronis Backup & Recovery 11.5 Quick Start Guide

StrikeRisk v6.0 IEC/EN Risk Management Software Getting Started

Getting Started with Citrix Remote Connectivity Service

Accessing Citrix on a MAC using OS X (Mountain Lion and Newer)

Administration guide. Océ LF Systems. Connectivity information for Scan-to-File

Internet Explorer Settings for Optum CareTracker

The cloud server setup program installs the cloud server application, Apache Tomcat, Java Runtime Environment, and PostgreSQL.

TestManager Administration Guide

Integrated Invoicing and Debt Management System for Mac OS X

Document Management Quick Reference Guide

Installing C++ compiler for CSc212 Data Structures

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

Eclipse installation, configuration and operation

Installing and Using No Machine to connect to the Redhawk Cluster. Mac version

Customizing the SSOSessionTimeout.jsp page for Kofax Front Office Server 3.5.2

User guide. Business

HP INTEGRATED ARCHIVE PLATFORM

Introduction to Mac OS X

FileZilla: Uploading/Downloading Files to SBI FTP

7-zip Encryption Instructions

Administration Guide. . All right reserved. For more information about Specops Gpupdate and other Specops products, visit

VMware Horizon FLEX User Guide

Appendix 1 Install RightNow on your PC

MyReports Recommended Browser Settings MYR-200a

How To Restore Your Data On A Backup By Mozy (Windows) On A Pc Or Macbook Or Macintosh (Windows 2) On Your Computer Or Mac) On An Pc Or Ipad (Windows 3) On Pc Or Pc Or Micro

Before you can use the Duke Ambient environment to start working on your projects or

Universal Management Service 2015

PC Requirements and Technical Help. Q1. How do I clear the browser s cache?

CONFIGURING MICROSOFT SQL SERVER REPORTING SERVICES

Attix5 Pro Server Edition

Cincom Smalltalk. Installation Guide P SIMPLIFICATION THROUGH INNOVATION

Installing Java 5.0 and Eclipse on Mac OS X

Migrating to Azure SQL Database

To install the "Microsoft Remote Desktop Client" on OS X "Tiger" or above:

Installation Windows Next Linux Mac Navigator Navigator Help Show Navigator at Startup PR Wizard New PR Campaign PR Manager

owncloud Configuration and Usage Guide

How to create pop-up menus

Note: A WebFOCUS Developer Studio license is required for each developer.

Vodafone PC SMS (Software version 4.7.1) User Manual

Dial-up Installation for CWOPA Users (Windows Operating System)

, SHAPE Services

Transcription:

WSL Course Introduction to Statistics Software, Installation and Use Christian W. Hoffmann Swiss Federal esearch Institute WSL 2009-12-06, 14:03:31 Contents 1 Documents and Programs needed, and where to get them 2 2 Editors 3 3 Hints for installation 3 4 Install the Course Material 4 4.1 Get the Course Data.................................. 4 4.2 Starting for the first time.............................. 4 4.3 Create the working file................................. 5 4.4 Quitting........................................ 5 5 Working with the files 5 5.1 If the html help does not appear........................... 5 5.2 Editing files....................................... 5 5.3 unning scripts in.................................. 5 5.4 esults.......................................... 5 5.5 Improvements...................................... 5 6 Automatic Generation of.pdf files 6 6.1 Sweave.sty........................................ 6 6.2 Sweave, LATEX, Acrobat................................ 6 7 Information flow and internal programming 7 1

Contact: christian.hoffmann@wsl.ch, most reachable here. Office: WSL HP D60 Tel intern: 277, with answering machine Conventions: > means Item in Menu or Link to (Double-) Click The Prompt of will also be marked by >; it will be mentioned in the first few examples, and must never be typed. After text input <T> must be pressed. 1 Documents and Programs needed, and where to get them According to one s needs the course material can be worked on at different levels. The diagram of the structure of data and programs can help to understand better this document, see Fig. 1 on p. 7. All further material is available through http://www.wsl.ch/forschung/forschungsunits/wald/infomanagement/courses/statistics/ index_en (English), and http://www.wsl.ch/forschung/forschungsunits/wald/infomanagement/courses/statistics/ index_de (German). These directories will be referred to in the following text. 1. Walk through the course manuscript Crs.pdf (see index_en), an Adobe Acrobat eader is needed (newer version!). 2. Working on the programming code Crs. (see index_en) using the statistical programming software package : a) Create (on the Desktop, preferably) your Working Directory ( WD ) StatsCrs (as you may call it), b) Installation of the software package in the newest version -xxx, where at the moment xxx = 2.10.0, by downloading and following the directions in (or: r-project.org -> FAQ -> Basics -> How Can be Installed -> Choose your OS) Windows: http://cran.r-project.org/ > Windows > base > -xxx-win32.exe and EADME.-xxx, Mac OSX: http://cran.r-project.org/ > MacOSX > -xxx.dmg and NEWS (the latter will show up as The Comprehensive Archive Network.html and as a directory of the same name), c) Copying of Crs. (see index_en) (and Crs.eadme.pdf) to the WD, generation of the subdirectory fig in the WD. d) Downloading of Crs.zip (see index_en) and unpacking to the WD. If you are more interested, also download AdditionalZusatz.zip. e) The file Crs.profile determines the starting process of and the loading of additional packages needed, see 4.2. 2

f) Execution of > source("crs."). All variables and figures of the course. From now on any parts of the code can be executed in any order without fear of being stuck with missing variables. 3. Modification of individual chapters or generation of an own manuscript: a) Installation of editors (see Chap. 2) and of a LATEX system: Windows: TexLive from http://www.tug.org/texlive/acquire.html Mac OSX: TexShop.dmg from http://www.tug.org/mactex/ > MacTeX.mpkg. zip. b) Using the editors (e.g. Tinn- and Aquamacs) on data of type.nw, c) Treating of..nw with executing > Sweave("..nw"), resulting in files..tex, d) Type setting of..tex executing pdflatex or TexShop, resulting in files..pdf. In the following chapters some of these points will be clarified some more. 2 Editors Windows: Tinn- from http://www.sciviews.org/tinn-/ TextPad from http://www.textpad.com/ NotePad2 from http://www.flos-freeware.ch/notepad2.html Crimson Editor from http://www.crimsoneditor.com/ Mac OSX: Aquamacs.dmg from http://www.cognitiones.de/doku.php/aquamacs TexShop.dmg from http://www.tug.org/mactex/ Alpha from http://www.kelehers.org/alpha/ TotalEdits from http://totaledit.softonic.de/ The editors mentioned can be tuned to show pairs of brackes and braces, key words of the syntax, and thus assist substantially to write correct programs. Some offer the possibility to send code lines and whole regions directly to the process. At any rate, the pedestrian way of Copy/Paste from the editor to the command line of. 3 Hints for installation 1. Windows: Create a shortcut of the programm C:\ProgramFiles\\-xxx\bin\gui. exe and specify the Working directory in Properties as the ( WD ) of Ch.1. This is very important!, if you want to start via this shortcut. 2. Mac OSX: At the start of there will pop up the question for the starting directory. If not an explicit setwd(wd}) (like setwd("/users/own_usename/desktop/statscrs")) will bring us to the working directory. 3. There is a way to test for the working directory of the present process, namely getwd(). 3

4 Install the Course Material 4.1 Get the Course Data Unpack the course files from Crs.zip (see Ch.1) into the WD StatsCrs. Take care that the subdirectory fig exists, otherwise create it. Important: It may happen when unpacking, that an additional StatsCrs inside of ( below ) WD StatsCrs is created which then contains all files (and subdirectories) of the course. In order to establish the correct hierarchy all these files will have to be moved up into WD StatsCrs. The emptied and now superfluous StatsCrs should be deleted. Again: Instead of.../desktop/statscrs/statscrs/<course files> now correctly.../desktop/statscrs/<course files> und deletion of.../desktop/statscrs/statscrs/. 4.2 Starting for the first time 1. Windows: Doubleclick the icon on the desktop, and Gui opens. Navigate File > Change directory > choose..desktop/statscrs. 2. Mac OSX: Programs > start Aquamacs.app, Press consecutively the keys Esc, x and <T>, or open the file Crs. (in WD), press the icon in the menu bar. In a frame of Aquamacs the process will now be started. The question for the starting directory will show (and may be correctly suggested as WD), or do explicitly > setwd("/users/own_usename/desktop/statscrs"). 3. To adjust the starting process > source("crs.profile") has to be executed, then >.First(). When a list of source locations is shown, choose Switzerland and acknowledge with OK. Expand the window to full screen to show the OK-Button! The required packages are loaded. 4. At the start of, in the browser a window there should appear file:/..././doc/html/ index.html (or similar) showing: Statistical Data Analysis (-Logo) Manuals An Introduction to The Language Definition Writing Extensions Installation and Administration Data Import/Export Internals eference Packages Search Engine & Keywords Miscellaneous Material About Authors esources License Frequently Asked Questions Thanks Checking the version of can be done with >.Version(). Error messages showing up in the Console must be taken serously. They help to configure the startup process correctly. Call for help, if necessary. In Aquamacs the colour of the text in the prompt may not be as desired. Try with > \\`'. 4

4.3 Create the working file Use the file Crs. as supplied, or create it using > Stangle("Crs.nw"). 4.4 Quitting > q(), answer Save Workspace: by typing y. 5 Working with the files 5.1 If the html help does not appear At the start of the -help should appear in the browser, see Ch. 4.2. If this ist not the case or if one has killed this browser window inadvertantly, one can get it back by executing > help.start(). 5.2 Editing files Use one of the editors Tinn-, TextPad, Aquamacs, or TexShop. TexShop offers excellent help and even some courses on writing in LATEX. 1. Windows: If you do not want to use Tinn-, go to the console > File > Open Script > e.g. Crs.. This editor internal to does not offer syntax highlighting. Alternative editors are mentioned in Chap. 2. 2. Mac OSX: Aquamacs is an integral working environment, one can work with seamlessly. It offers good syntax highlighting, data comparison, etc., but you will have to get used to it (it is Emacs after all). TexShop can also edit files, and will be used for type setting, i.e. it produces.pdf files from LATEX s.tex files. 5.3 unning scripts in Execute > source("crs."), or copy lines from Crs.pdf to the command line of and execute there. esults of computations and error messages are shown in the Console at the prompt. When graphic plots are generated, they will be shown in a window titled Graphics... 5.4 esults esults of computations can be copied from the Console to an own file and then be saved. Whole sessions can be saved by a special command, in Aquamcs use File > Save Buffer as on the buffer. The window with a plot inside can be saved from its menu, under a suitable name, e.g. in the subdirectory fig of the WD. 5.5 Improvements epeat the steps of this chapter... 5

6 Automatic Generation of.pdf files 6.1 Sweave.sty A file Sweave.sty is supplied, it should also go in the WD. It is used in > Sweave(). 6.2 Sweave, L A TEX, Acrobat 1. Execute > Sweave("Crs.nw") and wait for the message You can now.... 2. Windows: > system("pdflatex Crs") (execute twice!), this will create Crs.pdf which can be opened with the Adobe Acrobat eader. Do not forget to get the newest version of the eader! 3. Mac OSX: In TexShop do > Ablage > "Offnen oder Zuletzt benutzte Dokumente > Crs.tex, Command-T (execute twice!), this will create Crs.pdf and open it. Executing the given commands twice will resolve forward references in the manuscript. 6

7 Information flow and internal programming Crs.nw > Stangle( + ) > Sweave( * ) \SweaveInput( ) Crs.hdr Crs.Ch1.nw Crs.Ch2.nw Crs.Ch3.nw Crs. -Console > Stangle ( Crs.nw ) + > source ( Crs. ) > [Copy Paste] > [esults] > Sweave ( Crs.nw )* > system( pdflatex Crs.tex ) Crs.tex > pdflatex Crs L Crs.pdf Mywork. \fig\fig-01.pdf \fig\fig-02.pdf \fig\fig-03.pdf \fig\fig-04.pdf Acrobat eader L Errors in chunk Errors in Latex C.W.Hoffmann, 2009-12-03 Figure 1: Files and programs, information flow in the system, LaTeX, Acrobat. For Mac OSX we have TexShop, Command-T instead of pdflatex Crs. 7