Question

3. (10 points) The data below are called ttable.csv on Bb. Read the data into R as a data frame tmat with names as shown. T

I only need the r code. the dataset we have is a .csv file.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

import the data from the csv file with read.csv() function

then to plot the graph you shown, type the following commands in R


plot(x-tmat Sdf .y-tmat $t01, ylim=c(1,7), type b, lty-dotted, main-critical points from Students-t distribution, xlab=

I have posted a screenshot of the code is because it is easy to understand it with colors and alignment. I ll give you code as text below.

the idea is just plot graph of one variable first. then using lines() function you can plot remaining variable in the same graph. You will get the following graph.

Critical Points from Students-t distribution 7 Upper 10% points 6 Upper 5% points Upper 1% points 5 4 3 2 S 1 Degrees of free

plot(x=tmat$df,y=tmat$t01,ylim=c(1,7),type="b",lty="dotted",
main="Critical Points from Students-t distribution",
xlab="Degrees of freedom",
ylab="")
lines(tmat$df,tmat$t05,type="b",lty="dashed")
lines(tmat$df,tmat$t10,type="b",lty="solid")
legend("topright",
legend=c("Upper 10% points",
"Upper 5% points",
"Upper 1% points"),
lty=c("solid","dashed","dotted"))

Add a comment
Know the answer?
Add Answer to:
I only need the r code. the dataset we have is a .csv file. 3. (10...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT