Question

In: Statistics and Probability

1.What is the relationship between the LSD and a Z score? (R programming Language) Write a...

1.What is the relationship between the LSD and a Z score? (R programming Language)

Write a fragment of code comparing how both would be computed. Use the Z score for the standard error of a mean,

$z_i = (x_i - \mu)/(\sigma / \sqrt(n))$

2. How would you modify the calculations of LSD to produce Tukey's Honest Signficant Difference?

Solutions

Expert Solution

The main difference/relationship between LSD and z-score is that z score is used to assess that whether means of two samples (independent or paired) are statistically different or not but it does not tell us what is the exact difference. LSD is used when we have more than two groups and want to know that what is the exact difference between the means of all the samples.

For example - If you have 5 samples, you would not apply z test by taking two samples at a time. It will take a lot of time. Hence, you will apply LSD directly on it.

R programming code for LSD:

library(agricolae) #installing the library agricolae first

(LSD.test(model, "Group",
           alpha = 0.05,       
           p.adj="none"))

R programming code for Z-Score:

z.test(x, y = NULL, alternative = "two.sided", mu = 0, conf.level = 0.95)

2. How to modify the calculations of LSD to produce Tukey HSD:

LSD is calculated using the following formula in R:

LSD =

Here, MSE = Mean square Error

n* = number of scores used

To calculcate HSD: Modification can be done in the above formula, instead of t value, we have to use the q value to calculate HSD. Rest of the formula remains the same.

HSD = q *

q value is obtained using the q statistic table.


Related Solutions

Q # 3: What is the relationship between LSD and serotonin? Q # 4: Describe the...
Q # 3: What is the relationship between LSD and serotonin? Q # 4: Describe the effects of hallucinogens on different parts of the brain. Q # 5: Define and describe the following terms: true hallucination, pseudo-hallucinations, trips, good trips, bad trips, synesthesia, and hypersuggestibility. Q # 6: What are the differences between a hallucination, flashback, and a halluciongen persisting perception disorder? Q # 7: What is a mixed stimulant-psychedelic drug and how does it differ from LSD?  Compare and contrast...
What is the difference between Fact and Query in a logic programming language?
What is the difference between Fact and Query in a logic programming language?
LISP Programming Language Write a Bubble Sort program in the LISP Programming Language called “sort” that...
LISP Programming Language Write a Bubble Sort program in the LISP Programming Language called “sort” that sorts the array below in ascending order.  LISP is a recursive language so the program will use recursion to sort. Since there will be no loops, you will not need the variables i, j, and temp, but still use the variable name array for the array to be sorted.             Array to be sorted is 34, 56, 4, 10, 77, 51, 93, 30, 5, 52 The...
How do you convert a data value to a z-score? What is a z score? What...
How do you convert a data value to a z-score? What is a z score? What is the empirical rule?
Use R programming Language Q1. (a)Write a function called lowerTrim that takes 2 arguments: x and...
Use R programming Language Q1. (a)Write a function called lowerTrim that takes 2 arguments: x and trimBelow. This function takes the average of those values in x that are greater than the trimBelow. Make x a required argument and supply a default value for trimBelow of negative infinity. First create some variable to be used for testing later. x = 1:5 y = letters z = list(a = 1:5, b = 1:10) Now test your function with the following lowerTrim(x)...
R-Studio (R Programming Language) 4. Let the data x be given by `x <- c(1, 8,...
R-Studio (R Programming Language) 4. Let the data x be given by `x <- c(1, 8, 2, 6, 3, 8, 5, 5, 5, 5)` Use R to compute the following functions. Note, we use X1 to denote the first element of x (which is 1) etc.    1. `(X1 + X2 + . . .+ X10)/10` (use sum)    2. Find log10(Xi) for each i. (Use the log function which by default is base e) 3. Find `(Xi - 4.4)/2.875`...
1. To understand the value of records in a programming language, write a small program in...
1. To understand the value of records in a programming language, write a small program in a C-based language that uses an array of structs that store student information, including name, age, GPA as a float, and grade level as a string (e.g., “freshmen, junior, senior” etc.). Also, write the same program in the same language without using structs. Note: Code and with output screenshots
Chapter 14: Language What is the relationship between language and communication? Does a lack of advanced...
Chapter 14: Language What is the relationship between language and communication? Does a lack of advanced language in imply a lack of communication? How does your own language impact communication? What qualifies as a language? What areas of the brain helps us communicate vs develop a language? Also share unique words you utilize with your friends and family. How would the rest of us understand the meaning? Are those words part of a difference language?
Consider the relationship between students’ score on a first course exam and their score on the...
Consider the relationship between students’ score on a first course exam and their score on the final exam. First-test score               Final-exam score 153                              145 144                              140 162                              145 149                              170 127                              145 118                              175 158                              170 153                              160 Using (1) your calculator, a pencil and graph paper and then (2) Excel: Plot the data with the first-test score on the x axis and the final-exam score on the y axis. Find the arithmetic mean, the mean absolute deviation and...
R-Studio (R Programming Language) 1. How would you create a vector `V` containing the values 0,...
R-Studio (R Programming Language) 1. How would you create a vector `V` containing the values 0, 0.25, 0.5, 0.75, and 1?    ```{r} #insert your code ``` 2. Name the elements of `V`: first, second, middle, fourth, last. Describe two ways of naming elements in `V` ```{r} #insert your code ``` 3. Suppose you keep track of your mileage each time you fill up. At your last 6 fill-ups the mileage was 65311 65624 65908 66219 66499 66821 67145 67447....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT