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...
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
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?
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...
GPA calculator in C language To understand the value of records in a programming language, write...
GPA calculator in C language 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,” etc.). Note:Code and Output Screenshots
1. What is the z-score associated with the 75th percentile? 2. What z-scores bound the middle...
1. What is the z-score associated with the 75th percentile? 2. What z-scores bound the middle 50% of a normal distribution? 3. What z-score has 10% of the distribution above it? 4. What z-score has 20% of the distribution below it? 5. Reading comprehension scores for junior high students are normally distributed with a mean of80.0 and a standard deviation of 5.0. a. What percent of students have scores greater than 87.5? b. What percent of students have scores between...
What is the nature of the relationship between words and language and social and cognitive boundaries...
What is the nature of the relationship between words and language and social and cognitive boundaries and distinctions?
Programming Language C++ Task 1: Write a program to calculate the volume of various containers. A...
Programming Language C++ Task 1: Write a program to calculate the volume of various containers. A base class, Cylinder, will be created, with its derived classes, also called child classes or sub-classes. First, create a parent class, Cylinder. Create a constant for pi since you will need this for any non-square containers. Use protected for the members. Finally, create a public function that sets the volume. // The formula is: V = pi * (r^2) * h Task 2: Create...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT