[R] How to Compare the median to the mean?
Okay, so I have a homework projecr for R, and we had to input the following link as some sort of data: nb10 <- read.table("http://www.adjoint-functors.net/su/web/314/R/NB10";). Afterwards, we have to use fivenum(nb10) to find max, min, quantiles, and sd, but I'm okay with this. The next question is where I'm stuck. The question is as follows; Compare the median (use the quantiles or median(nb10$V1)) to the mean. I found the mean to be 408.8 and the median to be 404. Can you please explain to me what I need to put into the program to get an answer and explain what the answer means? Thank You. -- View this message in context: http://r.789695.n4.nabble.com/How-to-Compare-the-median-to-the-mean-tp4357520p4357520.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] How to Calculate Percentage of Data within certain SD of Mean
How do you calculate the percentage of data within 2SD, 3SD, 4SD, 5SD, and 6SD of the mean? I used the following link as the data I'm working with: nb10 <- read.table("http://www.adjoint-functors.net/su/web/314/R/NB10";) if this helps answer my question. Can you please explain how to calculate the SD's? Please be specific in which part of the function changes when calculating the next SD up. Thanks. -- View this message in context: http://r.789695.n4.nabble.com/How-to-Calculate-Percentage-of-Data-within-certain-SD-of-Mean-tp4359551p4359551.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] How to figure out the number of data values in a list?
Hello, I am working with the following data: nb10 <- read.table("http://www.adjoint-functors.net/su/web/314/R/NB10";) I need to figure out how many data values are in this list. -- View this message in context: http://r.789695.n4.nabble.com/How-to-figure-out-the-number-of-data-values-in-a-list-tp4366679p4366679.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.