



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




R-Studio Makes uploading CSV files into R extremely simple. Just follow these instructions and youāll be using R in no time.
3 Doing Statistics in RStudio
After you have opened your data, doing statistics is really easy. Below is a list of commands that you will need to do any kind of statistics in RStudio.
summary(X) Min. 1st Qu. Median Mean 3rd Qu. Max. -3.0360 -0.8855 -0.2475 -0.2382 0.3345 3.
mean(X,na.rm=TRUE) [1] -0.
sd(X,na.rm=TRUE) [1] 0.
model1 = lm(Y~X) summary(model1)
Call: lm(formula = Y ~ X)
Residuals: Min 1Q Median 3Q Max
model2 = lm(Y~X) plot(X,Y) abline(model2)
t.test(X,Y)
Welch Two Sample t-test
data: X and Y t = -0.2212, df = 193.652, p-value = 0. alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: -0.3231116 0.
sample estimates: mean of x mean of y -0.2382041 -0.
hist(X)
plot(X,Y)