R Stata - Data and Statistical Services - Princeton University
R Stata - Data and Statistical Services - Princeton University
R Stata - Data and Statistical Services - Princeton University
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