Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider paired numeric variables, named and stored in as y1 and y2. Provide a s

ID: 3238520 • Letter: C

Question

Consider paired numeric variables, named and stored in as y1 and y2. Provide a single line of code in base R that executes without error and that uses normal theory to R the two-sided significance test Pearson correlation. Add no unnecessary arguments the return to the R Console, of function call. Consider paired numeric variables, named and stored in R as y1 and y2. Provide a single line of code in base R that executes without error and that returns the graph of the scatter plot of the points using solid black circles as plotting symbol and with y1 located on the x-axis. Add no unnecessary arguments to the function call. Consider paired numeric variables, named and stored in R as y1 and y2. In R, let N denote sample size and obs.r denote observed Pearson r. Provide a single line of R code from the pwr package that uses normal theory after Cohen (1988) to return the "power of the test" for the two-sided significance of observed Pearson r, using as arguments to the call: observed sample size N, obs.r as observed r, and 0.05 as the desired level of significance. Add no unnecessary arguments to the function call.

Explanation / Answer

Will answer only the first full question

The one line code for correlation test is

cor.test(y1,y2,method="pearson")

This will generate both correlation value and the p-value, use this to reject accordingly

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote