Question

The reacttimes data set has 50 observations of human reaction times to a physical stimulus. The...

The reacttimes data set has 50 observations of human reaction times to a physical stimulus.
The reaction times are named Times and arranged in increasing order below.
0.12 0.30 0.35 0.37 0.44 0.57 0.61 0.62 0.71 0.80 0.88 1.02 1.08 1.12 1.13 1.17 1.21 1.23 1.35
1.41 1.42 1.42 1.46 1.50 1.52 1.54 1.60 1.61 1.68 1.72 1.86 1.90 1.91 2.07 2.09 2.16 2.17 2.20
2.29 2.32 2.39 2.47 2.60 2.86 3.43 3.43 3.77 3.97 4.54 4.73
1. Find the mean and median of Times without using R. You may use your calculator.
2. Import reacttimes into your workspace as a data frame with a single variable Times.
Attach the reacttimes data frame to your workspace with
> attach(reacttimes)
Then calculate the mean of Times by using R's mean( ) function and the median with R's
median( ) function.
3. Find the 60th percentile of Times without using R. There may be more than one accept-
able answer.
4. Find the 60th percentile of Times using R's quantile( ) function.
5. Find the 40th percentiles of mydata and mydata[-21] by hand and also by using R.
6. Find the 5% trimmed mean of Times.
7. Find the five number summary of Times.

8. The 40th value Times(40) of the reaction time data is 2.32. Change it to 232.0 and
recalculate the mean and median. You can make the change in R by

> Times[40]=232.0

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

Civen xi on ,0.30, 0.35, 3,0.44,0.61,062, 0-11 0 30 078,,13 , 1.12, 1.13 ,1 1t, 1.14 , 1.23 1-35, 1, 1.42, 142, 146, 1.So, I.observotHion th ะ L30-G | Observation : (30 )th absenvation + 6 (31)th observation 3oth obser vation F 1.72 to .86 1.12 z 1.7R RGui (32-bit) File Edit View Misc Packages Windows Help 3RR Console R Untitled -R Editor times-C (0.12,0.30,0.35,0.37,0.44,

Add a comment
Know the answer?
Add Answer to:
The reacttimes data set has 50 observations of human reaction times to a physical stimulus. The...
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
  • Please help me with writing this code, it's R. Summarizing data 11 Now that you've seen...

    Please help me with writing this code, it's R. Summarizing data 11 Now that you've seen the function sapply() , you'll practice writing your own functions to apply! The first step is defining a function that ouputs summary statistics. Packaging common operations into functions allows you to avoid repeating yourself. To define your own function in R, you'll use the syntax function_name <- function(args, more_args) { } where the is replaced with whatever operations using args and more_args you want...

  • The following table contains data from a study on the survival times T (in days) of...

    The following table contains data from a study on the survival times T (in days) of eighteen patients with lung diseases. Right censored observations are denoted by “+”. Days to death 8 8 26+ 29 69 76+ 77 78+ 79 108 115 122+ 153 154 157+ 180+ 190+ 211+ (a) Estimate the survival function S(t) using the Kaplan-Meier estimator. Compute the standard error of the estimate at each of the uncensored time points. (b) Estimate the median and the 25th-percentile...

  • For this exercise we will run a regression using Swiss demographic data from around 1888. The...

    For this exercise we will run a regression using Swiss demographic data from around 1888. The sample is a cross-section of French speaking counties in Switzerland This data come with the R package datasets. The first step is to load the package into your current environment by typing the command libraryldatasets) in to the R console. This loads a number of datasets including one called swiss. Type help/swiss) in the console for additional details. The basic variable definitions are as...

  • Here is a data set (n = 117) that has been sorted. 56.8 69.8 71.2 73.7...

    Here is a data set (n = 117) that has been sorted. 56.8 69.8 71.2 73.7 75.5 77. 4 78.7 80.3 81. 8 84. 5 87 88.6 92.4 59.9 70.4 72.2 74 75.6 77.5 78.7 80.5 8 2 85 87.1 88.6 92.7 61.2 70.4 72.3 74.1 75.9 77.7 78.7 80.8 82.2 85.3 87.6 88.9 92.8 62.2 68.4 70.5 70.6 72.4 72.5 74.2 74.3 76.1 76.2 77.8 77. 8 78.9 79.1 | 81 | 81.1 82.2 82.2 86.1 86.5 87.8 87.9...

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