Napkins I: The Code In the tigerstats package we find the data frame napkins: data(napkins) View(napkins) help(napkins) this was an observational study performed at Georgetown College. A small team of student researchers visited the Cafe several times during the lunch hour and recorded the sex of each student in the study as well as how many napkins each student used during the meal. The Research Question was: Who uses more napkins, on average, during lunch: a GC male or a GC female? The researchers decided to study their question by making a confidence interval. First they defined some parameters: Let mu1 = the mean number of napkins per student, for all male students at Georgetown. mu2 = the mean number of napkins per student, for all female students at Georgetown. The researchers would like to make a 95%-confidence interval for mu1 - mu2. Help them out: which of the following bits of R-code will give the researchers the results they need? Group of answer choices ( ) ttestGC(napkins~sex,conf.level=0.95) ( ) ttestGC(sex~napkins,data=napkins) ( ) ttestGC(napkins~sex,data=napkins) ( ) ttestGC(napkins~sex,data=napkins, first="male") ( ) ttestGC(~napkins,data=napkins)
Correlation
Correlation defines a relationship between two independent variables. It tells the degree to which variables move in relation to each other. When two sets of data are related to each other, there is a correlation between them.
Linear Correlation
A correlation is used to determine the relationships between numerical and categorical variables. In other words, it is an indicator of how things are connected to one another. The correlation analysis is the study of how variables are related.
Regression Analysis
Regression analysis is a statistical method in which it estimates the relationship between a dependent variable and one or more independent variable. In simple terms dependent variable is called as outcome variable and independent variable is called as predictors. Regression analysis is one of the methods to find the trends in data. The independent variable used in Regression analysis is named Predictor variable. It offers data of an associated dependent variable regarding a particular outcome.
Napkins I: The Code
In the tigerstats package we find the data frame napkins:
data(napkins)
View(napkins)
help(napkins)
this was an observational study performed at Georgetown College. A small team of student researchers visited the Cafe several times during the lunch hour and recorded the sex of each student in the study as well as how many napkins each student used during the meal.
The Research Question was:
Who uses more napkins, on average, during lunch: a GC male or a GC female?
The researchers decided to study their question by making a confidence interval. First they defined some parameters:
Let
mu1 = the
mu2 = the mean number of napkins per student, for all female students at Georgetown.
The researchers would like to make a 95%-confidence interval for mu1 - mu2.
Help them out: which of the following bits of R-code will give the researchers the results they need?
( ) ttestGC(napkins~sex,conf.level=0.95)
first="male")
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images