Exploring Data and Descriptive Statistics (using R)
Data Analysis 101 Workshops
Exploring Data and Descriptive Statistics
(using R)
Oscar Torres-Reyna
Data Consultant
otorres@princeton.edu
Agenda¡
?
?
?
?
?
?
?
?
?
What is R
Transferring data to R
Excel to R
Basic data manipulation
Frequencies
Crosstabulations
Scatterplots/Histograms
Exercise 1: Data from ICPSR using the Online Learning Center.
Exercise 2: Data from the World Development Indicators & Global Development
Finance from the World Bank
This document is created from the following:
OTR
2
What is R?
? R is a programming language use for statistical analysis
and graphics. It is based S©\plus. [see ©\]
? Multiple datasets open at the same time
? R is offered as open source (i.e. free)
? Download R at ©\
? A dataset is a collection of several pieces of information
called variables (usually arranged by columns). A variable
can have one or several values (information for one or
several cases).
? Other statistical packages are SPSS, SAS and Stata.
OTR
3
Other data formats¡
Features
Stata
SPSS
SAS
R
Data extensions
*.dta
*.sav,
*.por (portable file)
*.sas7bcat, *.sas#bcat,
*.xpt (xport files)
*.Rdata
Programming/point-and-click
Mostly point-and-click
Programming
Programming
Very strong
Moderate
Very strong
Very strong
Powerful
Powerful
Powerful/versatile
Powerful/versatile
Very good
Very good
Good
Excellent
Affordable (perpetual
licenses, renew only when
upgrade)
Expensive (but not need to
renew until upgrade, long
term licenses)
Expensive (yearly
renewal)
Open source
*.do (do-files)
*.sps (syntax files)
*.sas
*.txt (log files)
*.log (text file, any word
processor can read it),
*.smcl (formated log, only
Stata can read it).
*.spo (only SPSS can read
it)
(various formats)
*.R, *.txt(log files,
any word
processor can
read)
User interface
Data manipulation
Data analysis
Graphics
Cost
Program
extensions
Output extension
OTR
4
Stat/Transfer: Transferring data from one format to another (available in the DSS lab)
1) Select the current format of the dataset
2) Browse for the dataset
3) Select ¡°Stata¡± or the data format you need
4) It will save the file in the same directory as the original but with
the appropriate extension (*.dta for Stata)
5) Click on ¡®Transfer¡¯
OTR
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- code and data for the social sciences a practitioner s guide
- common dental procedure codes used in direct care programs
- undertaking a systematic review what you need to know
- a sample research paper thesis dissertation on aspects of
- multiple regression with categorical data
- aircrew quick reference to the metar and taf codes
- glossary of epic terms
- qualitative methods coding data analysis
- exploring data and descriptive statistics using r
- medical abbreviation list by abbreviation
Related searches
- how to do descriptive statistics in excel
- descriptive statistics purpose
- descriptive statistics excel
- descriptive and inferential statistics pdf
- descriptive statistics pdf
- descriptive statistics excel 2019
- data analysis descriptive statistics excel
- descriptive statistics examples
- descriptive statistics pdf books
- descriptive statistics definition pdf
- descriptive statistics example psychology
- descriptive statistics example in nursing