Write a function that executes a two-sided t-test


Problem

Write a function that executes a two-sided t-test. The function should receive three parameters: data_frame, column_name, and comparison_value. The first parameter, data_frame, should be an R data frame containing the data. The second parameter, column_name, should be a character string representing the name of the column in data_frame that has the data whose mean is of interest in the test. The third parameter, comparison_value, is the value associated with the null hypothesis, i.e., the value we take as the true mean of the population.

Write code in the function body to compute the t-test and return the p-value associated with the test statistic. DO NOT use the R function, t.test(), or the single_mean function in radiant.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a function that executes a two-sided t-test
Reference No:- TGS03256045

Expected delivery within 24 Hours