Question: Question Group D ( Questions 2 1 2 6 ) The data for this problem are from n = 4 3 5 small mouth bass
Question Group D Questions
The data for this problem are from n small mouth bass from West Bearskin Lake in Minnesota. The data collected were age in years and fish length in centimeters. The data file is called basstxt Here is the code to load it into R and check to make sure it loaded correctly. I have given you the code below with explanation of what is does in the green font below so that you can load the data into R and get it into a format for analysis.
bassread.tableC:UsersgadburyOneDrive Kansas State UniversityStat A FSbasstxtheaderT
# I am reading a txt file here. You can use the read.csv command and change
# txt to csv in the above command and read the csv file instead.
#You will need to alter the path for your computer so that R can find #the data file. Note the double backslashes that are required.
dimbass # Number of observations is and two columns
bass: # Show the first observations. The columns are Age and Length
Age Length
attachbass #This command allows direct access to the variables, Age and Length
# This command is required to be executed for this code to work correctly.
AgefasfactorAge #I am naming an object Agef to be a factor variable for Age
#This is also a required command
isfactorAgef #This confirms that Agef is a categorical variable with levels
TRUE
levelsAgef
#There are levels of this factor variable
You now have your data ready to analyze. You will have two variables, Agef and Length. Length is numeric and Agef is a factor variable. We will assume that the assumptions for ANOVA have been met.
Analyze the data using Length as the numeric response variable and Agef as an explanatory factor variable.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
