SlideShare une entreprise Scribd logo
1  sur  33
Introduction ToIntroduction To
SASSAS
Good Data
Management Practices
Four Statistical Packages
• SPSS
• Stata
• R
• SAS
• Point and Click
• Command Line
• Programs (the best way)
Three Ways to Work
Outline
• Sermon on SYNTAX
• Cleaning data and creating variables
• Never overwrite original data
• Practices that will help you keep track of your work
• Safeguarding your work
A Sermon on SYNTAX
• Command line and Point and Click
– Advantages:
• Quick, may require less learning
– Disadvantages:
• Takes longer the second time – you must wade through the
point and click menu rather than just change a word
• You do not have a record of what you have done
SPSS
The King of Point and Click
You can point and click to get files, create variables, change variable
values, and do analysis, and end up without a record of what you
have done. You will be sorry.
Or, you can use Point and Click as an aid as you write programs.
You can copy syntax created by Point and Click into your program.
In SPSS programs are written in a Syntax Window and they have the
extension of .sps when you save them.
You can modify SPSS defaults so that commands will be reflected in the
log. This allows you to copy commands from your log into your
program file. These changes also make debugging easier.
You will find information about how to
modify SPSS at the following URL.
STATA
You can point and click, issue commands on the command line, or
create .do files. “.do” files can store your programs.
R
With R you can point and click, issue
commands on the command line, or
create .R files. “.R” files store your
programs.
Results from P&C are reflected so you
can copy them into your program.
SAS
SAS allows some point and
click, but immediately offers
an editor where you can write
your programs. SAS
programs end with the .sas
extension, and are text files.
SAS features an enhanced
editor with cool color coding
that makes it easier to write
and debug programs.
Never clean data in the data view
Scenario 1:
You get a data set and find errors in it.
You change the values in the data window.
You save it with point and click, over-writing your original data.
Later you try to recall what changes you made, when and why. Of
course you can’t. You can’t even be sure that you made the
“corrections” for the proper cases.
You can’t look back at older data sets to confirm what you did. You
sit there sweating.
Scenario 2 same as Scenario 1 :
You save it with point and click, over-writing your original data and,
while you are saving the file,
1) Your computer goes down because of a power outage OR
2) There is a brief interruption in the network
HALF OF YOUR DATA SET IS LOST.
You cry.
Scenario 3:
You get a data set and find errors in it.
You write a program that:
1) gets the original data
2) makes changes in values with SYNTAX
3) Includes comments about the changes
4) saves the new file in a different name
Science marches forward.
Creating Variables and Recoding
is not the same as Cleaning Data
• You always want clean data
• You may not always want the recoded or created
variables
• Make new variables, but keep the old ones. (don’t
over-write) Use the original to check the new
Examples of Recoding/Creating
• Creating a series of dummies from a categorical variable
• Creating an index from a series of scale variables
• Creating a dichotomous or categorical variable from a continuous
variable
• Always consider MISSING VALUES
Sample SPSS Program
* CleanNew.sps .
* 10/10/05 created dummy for male .
Get file = ‘dirty.sav’ .
* Cleaning data, PJG, looked at survey form, educ for ID=1 should be 16, 10/9/05 .
If id = 1 educ = 16 .
* Create a dummy variable from “gender”.
If gender = ‘m’ male = 1 .
If gender = ‘f’ male = 0 .
If gender = ‘’ male = -9 .
Missing values male (-9) .
Variable label male ‘Male’ .
Value labels male 1 ‘Male’ 0 ‘Female’ .
Save outfile = ‘CleanNew.sav’ / drop gender .
Summary for Cleaning and Creating
variables
• Use syntax (programs) to create and clean variables
• Document when and why in your programs
• Save new file – do not over-write the old
It may be months between the
time that you finish a paper,
submit it, and get to revise it for
publication.
What you will need to know:
• The origin of your variables:
– What is the source for each variable
– How were they created?
• What programs created your final tables?
• What program files created the file you used for your final tables?
Create a Directory for the Project
• For example, c:MA_Thesis
• Store all of the programs and data in that directory and
subdirectories
Naming Conventions
• For every data file you have, you should have a program
file with a corresponding name.
• When you have finished your paper, create a program
file for each table. For example: table1.sas table2.sas
Document your work
• Write comments in your program.
• Put a file in your directory called a_note, readme, or
something similar that includes a brief description of the
project and important information.
Safeguarding your work
• Multiple backups – not all stored in the same basket
• Worry about the future
– Keep up with formats (cards, tapes, floppy disks, CDs, what
next? )
– Store in portable formats
For More Information click below link:
Follow Us on:
http://vibranttechnologies.co.in/sas-classes-in-mumbai.html
Thank You !!!

Contenu connexe

En vedette

Actividad3 david a. condori tantani
Actividad3  david a. condori tantaniActividad3  david a. condori tantani
Actividad3 david a. condori tantaniAntonio Condori
 
Introduction to Stata
Introduction to StataIntroduction to Stata
Introduction to Stataizahn
 
STATA - Summary Statistics
STATA - Summary StatisticsSTATA - Summary Statistics
STATA - Summary Statisticsstata_org_uk
 
STATA - Importing Data
STATA - Importing DataSTATA - Importing Data
STATA - Importing Datastata_org_uk
 
Data management in Stata
Data management in StataData management in Stata
Data management in Stataizahn
 
STATA - Introduction
STATA - IntroductionSTATA - Introduction
STATA - Introductionstata_org_uk
 
Graphing stata (2 hour course)
Graphing stata (2 hour course)Graphing stata (2 hour course)
Graphing stata (2 hour course)izahn
 
Introduction to SAS
Introduction to SASIntroduction to SAS
Introduction to SASizahn
 
STATA - Panel Regressions
STATA - Panel RegressionsSTATA - Panel Regressions
STATA - Panel Regressionsstata_org_uk
 
STATA - Time Series Analysis
STATA - Time Series AnalysisSTATA - Time Series Analysis
STATA - Time Series Analysisstata_org_uk
 

En vedette (13)

Actividad3 david a. condori tantani
Actividad3  david a. condori tantaniActividad3  david a. condori tantani
Actividad3 david a. condori tantani
 
Within and Between Analysis (WABA).
Within and Between Analysis (WABA).Within and Between Analysis (WABA).
Within and Between Analysis (WABA).
 
Introduction to Stata
Introduction to Stata Introduction to Stata
Introduction to Stata
 
Introduction to Stata
Introduction to StataIntroduction to Stata
Introduction to Stata
 
STATA - Summary Statistics
STATA - Summary StatisticsSTATA - Summary Statistics
STATA - Summary Statistics
 
Introduction to STATA - Ali Rashed
Introduction to STATA - Ali RashedIntroduction to STATA - Ali Rashed
Introduction to STATA - Ali Rashed
 
STATA - Importing Data
STATA - Importing DataSTATA - Importing Data
STATA - Importing Data
 
Data management in Stata
Data management in StataData management in Stata
Data management in Stata
 
STATA - Introduction
STATA - IntroductionSTATA - Introduction
STATA - Introduction
 
Graphing stata (2 hour course)
Graphing stata (2 hour course)Graphing stata (2 hour course)
Graphing stata (2 hour course)
 
Introduction to SAS
Introduction to SASIntroduction to SAS
Introduction to SAS
 
STATA - Panel Regressions
STATA - Panel RegressionsSTATA - Panel Regressions
STATA - Panel Regressions
 
STATA - Time Series Analysis
STATA - Time Series AnalysisSTATA - Time Series Analysis
STATA - Time Series Analysis
 

Similaire à Sas - Introduction to working under change management

Sample Questions The following sample questions are not in.docx
Sample Questions The following sample questions are not in.docxSample Questions The following sample questions are not in.docx
Sample Questions The following sample questions are not in.docxtodd331
 
Introduction to SAS
Introduction to SASIntroduction to SAS
Introduction to SASImam Jaffer
 
STATA_Training_for_data_science_juniors.pdf
STATA_Training_for_data_science_juniors.pdfSTATA_Training_for_data_science_juniors.pdf
STATA_Training_for_data_science_juniors.pdfAronMozart1
 
Spss tutorial 1
Spss tutorial 1Spss tutorial 1
Spss tutorial 1debataraja
 
SPSS introduction Presentation
SPSS introduction Presentation SPSS introduction Presentation
SPSS introduction Presentation befikra
 
Introduction to sas
Introduction to sasIntroduction to sas
Introduction to sasDr P Deepak
 
Data processing & Analysis: SPSS an overview
Data processing & Analysis: SPSS an overviewData processing & Analysis: SPSS an overview
Data processing & Analysis: SPSS an overviewATHUL RAVI
 
Tableau Basic Questions
Tableau Basic QuestionsTableau Basic Questions
Tableau Basic QuestionsSooraj Vinodan
 
8323 Stats - Lesson 1 - 03 Introduction To Sas 2008
8323 Stats - Lesson 1 - 03 Introduction To Sas 20088323 Stats - Lesson 1 - 03 Introduction To Sas 2008
8323 Stats - Lesson 1 - 03 Introduction To Sas 2008untellectualism
 
Computer Tools for Academic Research
Computer Tools for Academic ResearchComputer Tools for Academic Research
Computer Tools for Academic ResearchMiklos Koren
 

Similaire à Sas - Introduction to working under change management (20)

Spss basics tutorial
Spss basics tutorialSpss basics tutorial
Spss basics tutorial
 
SAS BASICS
SAS BASICSSAS BASICS
SAS BASICS
 
Sample Questions The following sample questions are not in.docx
Sample Questions The following sample questions are not in.docxSample Questions The following sample questions are not in.docx
Sample Questions The following sample questions are not in.docx
 
Introduction to SAS
Introduction to SASIntroduction to SAS
Introduction to SAS
 
STATA_Training_for_data_science_juniors.pdf
STATA_Training_for_data_science_juniors.pdfSTATA_Training_for_data_science_juniors.pdf
STATA_Training_for_data_science_juniors.pdf
 
Sas training in hyderabad
Sas training in hyderabadSas training in hyderabad
Sas training in hyderabad
 
Spss tutorial 1
Spss tutorial 1Spss tutorial 1
Spss tutorial 1
 
Spss tutorial 1
Spss tutorial 1Spss tutorial 1
Spss tutorial 1
 
SPSS introduction Presentation
SPSS introduction Presentation SPSS introduction Presentation
SPSS introduction Presentation
 
5116427.ppt
5116427.ppt5116427.ppt
5116427.ppt
 
Introduction to sas
Introduction to sasIntroduction to sas
Introduction to sas
 
Data processing & Analysis: SPSS an overview
Data processing & Analysis: SPSS an overviewData processing & Analysis: SPSS an overview
Data processing & Analysis: SPSS an overview
 
Tableau Basic Questions
Tableau Basic QuestionsTableau Basic Questions
Tableau Basic Questions
 
INTRODUCTION TO SAS
INTRODUCTION TO SASINTRODUCTION TO SAS
INTRODUCTION TO SAS
 
Insight
InsightInsight
Insight
 
8323 Stats - Lesson 1 - 03 Introduction To Sas 2008
8323 Stats - Lesson 1 - 03 Introduction To Sas 20088323 Stats - Lesson 1 - 03 Introduction To Sas 2008
8323 Stats - Lesson 1 - 03 Introduction To Sas 2008
 
Stata tutorial university of princeton
Stata tutorial university of princetonStata tutorial university of princeton
Stata tutorial university of princeton
 
Computer Tools for Academic Research
Computer Tools for Academic ResearchComputer Tools for Academic Research
Computer Tools for Academic Research
 
introduction-stata.pptx
introduction-stata.pptxintroduction-stata.pptx
introduction-stata.pptx
 
SAS basics Step by step learning
SAS basics Step by step learningSAS basics Step by step learning
SAS basics Step by step learning
 

Plus de Vibrant Technologies & Computers

Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Vibrant Technologies & Computers
 

Plus de Vibrant Technologies & Computers (20)

Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5
 
SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables  SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables
 
SQL- Introduction to MySQL
SQL- Introduction to MySQLSQL- Introduction to MySQL
SQL- Introduction to MySQL
 
SQL- Introduction to SQL database
SQL- Introduction to SQL database SQL- Introduction to SQL database
SQL- Introduction to SQL database
 
ITIL - introduction to ITIL
ITIL - introduction to ITILITIL - introduction to ITIL
ITIL - introduction to ITIL
 
Salesforce - Introduction to Security & Access
Salesforce -  Introduction to Security & Access Salesforce -  Introduction to Security & Access
Salesforce - Introduction to Security & Access
 
Data ware housing- Introduction to olap .
Data ware housing- Introduction to  olap .Data ware housing- Introduction to  olap .
Data ware housing- Introduction to olap .
 
Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.
 
Data ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housingData ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housing
 
Salesforce - classification of cloud computing
Salesforce - classification of cloud computingSalesforce - classification of cloud computing
Salesforce - classification of cloud computing
 
Salesforce - cloud computing fundamental
Salesforce - cloud computing fundamentalSalesforce - cloud computing fundamental
Salesforce - cloud computing fundamental
 
SQL- Introduction to PL/SQL
SQL- Introduction to  PL/SQLSQL- Introduction to  PL/SQL
SQL- Introduction to PL/SQL
 
SQL- Introduction to advanced sql concepts
SQL- Introduction to  advanced sql conceptsSQL- Introduction to  advanced sql concepts
SQL- Introduction to advanced sql concepts
 
SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data   SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data
 
SQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set OperationsSQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set Operations
 
Sas - Introduction to designing the data mart
Sas - Introduction to designing the data martSas - Introduction to designing the data mart
Sas - Introduction to designing the data mart
 
Teradata - Architecture of Teradata
Teradata - Architecture of TeradataTeradata - Architecture of Teradata
Teradata - Architecture of Teradata
 
Teradata - Restoring Data
Teradata - Restoring Data Teradata - Restoring Data
Teradata - Restoring Data
 
Datastage database design and data modeling ppt 4
Datastage database design and data modeling ppt 4Datastage database design and data modeling ppt 4
Datastage database design and data modeling ppt 4
 
Sql server select queries ppt 18
Sql server select queries ppt 18Sql server select queries ppt 18
Sql server select queries ppt 18
 

Dernier

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 

Dernier (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 

Sas - Introduction to working under change management

  • 1.
  • 4. Four Statistical Packages • SPSS • Stata • R • SAS
  • 5. • Point and Click • Command Line • Programs (the best way) Three Ways to Work
  • 6. Outline • Sermon on SYNTAX • Cleaning data and creating variables • Never overwrite original data • Practices that will help you keep track of your work • Safeguarding your work
  • 7. A Sermon on SYNTAX • Command line and Point and Click – Advantages: • Quick, may require less learning – Disadvantages: • Takes longer the second time – you must wade through the point and click menu rather than just change a word • You do not have a record of what you have done
  • 8. SPSS The King of Point and Click
  • 9. You can point and click to get files, create variables, change variable values, and do analysis, and end up without a record of what you have done. You will be sorry.
  • 10. Or, you can use Point and Click as an aid as you write programs. You can copy syntax created by Point and Click into your program. In SPSS programs are written in a Syntax Window and they have the extension of .sps when you save them.
  • 11. You can modify SPSS defaults so that commands will be reflected in the log. This allows you to copy commands from your log into your program file. These changes also make debugging easier.
  • 12. You will find information about how to modify SPSS at the following URL.
  • 13. STATA
  • 14. You can point and click, issue commands on the command line, or create .do files. “.do” files can store your programs.
  • 15. R
  • 16. With R you can point and click, issue commands on the command line, or create .R files. “.R” files store your programs. Results from P&C are reflected so you can copy them into your program.
  • 17. SAS
  • 18. SAS allows some point and click, but immediately offers an editor where you can write your programs. SAS programs end with the .sas extension, and are text files. SAS features an enhanced editor with cool color coding that makes it easier to write and debug programs.
  • 19. Never clean data in the data view
  • 20. Scenario 1: You get a data set and find errors in it. You change the values in the data window. You save it with point and click, over-writing your original data. Later you try to recall what changes you made, when and why. Of course you can’t. You can’t even be sure that you made the “corrections” for the proper cases. You can’t look back at older data sets to confirm what you did. You sit there sweating.
  • 21. Scenario 2 same as Scenario 1 : You save it with point and click, over-writing your original data and, while you are saving the file, 1) Your computer goes down because of a power outage OR 2) There is a brief interruption in the network HALF OF YOUR DATA SET IS LOST. You cry.
  • 22. Scenario 3: You get a data set and find errors in it. You write a program that: 1) gets the original data 2) makes changes in values with SYNTAX 3) Includes comments about the changes 4) saves the new file in a different name Science marches forward.
  • 23. Creating Variables and Recoding is not the same as Cleaning Data • You always want clean data • You may not always want the recoded or created variables • Make new variables, but keep the old ones. (don’t over-write) Use the original to check the new
  • 24. Examples of Recoding/Creating • Creating a series of dummies from a categorical variable • Creating an index from a series of scale variables • Creating a dichotomous or categorical variable from a continuous variable • Always consider MISSING VALUES
  • 25. Sample SPSS Program * CleanNew.sps . * 10/10/05 created dummy for male . Get file = ‘dirty.sav’ . * Cleaning data, PJG, looked at survey form, educ for ID=1 should be 16, 10/9/05 . If id = 1 educ = 16 . * Create a dummy variable from “gender”. If gender = ‘m’ male = 1 . If gender = ‘f’ male = 0 . If gender = ‘’ male = -9 . Missing values male (-9) . Variable label male ‘Male’ . Value labels male 1 ‘Male’ 0 ‘Female’ . Save outfile = ‘CleanNew.sav’ / drop gender .
  • 26. Summary for Cleaning and Creating variables • Use syntax (programs) to create and clean variables • Document when and why in your programs • Save new file – do not over-write the old
  • 27. It may be months between the time that you finish a paper, submit it, and get to revise it for publication.
  • 28. What you will need to know: • The origin of your variables: – What is the source for each variable – How were they created? • What programs created your final tables? • What program files created the file you used for your final tables?
  • 29. Create a Directory for the Project • For example, c:MA_Thesis • Store all of the programs and data in that directory and subdirectories
  • 30. Naming Conventions • For every data file you have, you should have a program file with a corresponding name. • When you have finished your paper, create a program file for each table. For example: table1.sas table2.sas
  • 31. Document your work • Write comments in your program. • Put a file in your directory called a_note, readme, or something similar that includes a brief description of the project and important information.
  • 32. Safeguarding your work • Multiple backups – not all stored in the same basket • Worry about the future – Keep up with formats (cards, tapes, floppy disks, CDs, what next? ) – Store in portable formats
  • 33. For More Information click below link: Follow Us on: http://vibranttechnologies.co.in/sas-classes-in-mumbai.html Thank You !!!