An archive of Mark's Fall 2017 Intro Stat course.

Question 2 On Pairing Data HW

mfinley

Hi, for the second question in tonight’s homework on My Stat Lab, I cannot figure out how to find the confidence interval in R. For most data that we use, we just copy a link and do a t.test command, but with this data, it does not have link. I just don’t think I’m typing it in correctly in R with the raw data.

I feel like its a very simple solution and I just cannot for the life of me figure out how to put this data in R correctly without getting errors.

Thanks!

mark

See the little doo-hickey over on the right as shown in the picture? Click that and you should be able to open it up in your clipboard. You then copy and paste it into a command that looks like

df = read.csv(text = "paste-your-data-here")

mfinley

Ok. I’m sorry I’m still having trouble. To do the t test don’t I just put in t.test(Boys.Girls, conf.level=0.90)? Every time I try it it comes up as an error.

mark

You’ll need to store the result in a variable and I edited my previous response to show that. Once you do that, you’ll need to refer to the columns as df$Boys and df$Girls, rather than just Boys and Girls.

TineriTalentati

Hello. I’ve been studying the Exam guide and rewriting all the questions out so I can try and remember all the formulas and whatnot, but I cannot for the life of me figure out how to answer number 4. I can’t find it in our notes either. Help!