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...
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
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...
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...
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?
This questions was asked to be done using R language programming. The datasets are available along...
This questions was asked to be done using R language programming. The datasets are available along with MASS package in Rstudio. A. Package ‘MASS’ which provides a description of the datasets available in the MASS package Then, complete the following analysis of the identified data from the library. B. One-sample t-test: Use the “chem” dataset to answer the question, “is the flour production company producing whole meal flour with greater than 1 part per million copper in it?” C. Two-sample...
R programming language A) Create a function that accepts two arguments, an integer and a vector...
R programming language A) Create a function that accepts two arguments, an integer and a vector of integers. It returns the count of the number of occurrences of the integer in the input vector. 1]Input: num_count <-function ??? 2]Input: num_count(2,c(1,1,2,2,3,3)) 2] Output: 2 3] Input: num_count(1,c(1,1,2,2,3,1,4,5,5,2,2,1,3)) 3] Output : 4 B) Create a function that accepts 3 integer values and returns their sum. However, if an integer value is evenly divisible by 3, then it does not count towards the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT