26.11.2012 Views

R Stata - Data and Statistical Services - Princeton University

R Stata - Data and Statistical Services - Princeton University

R Stata - Data and Statistical Services - Princeton University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

install.packages("pastecs")<br />

library(pastecs)<br />

stat.desc(mydata)<br />

R <strong>Stata</strong><br />

stat.desc(mydata[,c("Age","SAT","Score","Height",<br />

"Read")])<br />

stat.desc(mydata[,c("Age","SAT","Score")],<br />

basic=TRUE, desc=TRUE, norm=TRUE, p=0.95)<br />

stat.desc(mydata[10:14], basic=TRUE, desc=TRUE,<br />

norm=TRUE, p=0.95)<br />

------------------------------------------------<br />

# Selecting the first 30 observations <strong>and</strong> first 14<br />

variables<br />

mydata2

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

Saved successfully!

Ooh no, something went wrong!