Correlation and plotting
You have been asked to identify whether the amount of time individuals spend searching the given site each day, TimeSearching corresponds to the amount of time they spend on the Internet each day Time, ignoring groups. Assess the linearity and normality assumptions to determine and run the appropriate correlation, and the power analysis, for the data set you've been given.
The webdata dataset and necessary pwr, and ggplot2 packages have been loaded for you.
Diese Übung ist Teil des Kurses
A/B Testing in R
Anleitung zur Übung
- Create a scatter plot of the variables, plotting the
TimeSearchingonxandTimeony. - Assess the normality assumption of
TimeSearchingandTime. - Run the appropriate correlation using the
TimeSearchingasxandTimeasyof thewebdatadataset, storing toRcor, to determine if the null can be rejected. - Run a power analysis on the correlation, calling available values from
Rcorto determine if the correlation test is reliable; the sample size of the dataset is100
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Create a scatter plot relevant to the analyses
ggplot(___, aes(x = ___, y = ___)) +
___
# Assess the normality assumption
___
___
# Run the appropriate correlation
Rcor <- cor.test(___)
# Run a power analysis on the correlation
pwr.r.test(___)