Question: For this question, use data from only restaurants with between 5 0 and 6 0 items in the data set. Predict total fat from cholesterol,
For this question, use data from only restaurants with between and items in the data set. Predict total fat from cholesterol, total carbs, vitamin a and restaurant. Remove any nonsignificant predictors and run again.
Assign the strongest standardized regression coefficient to Q Your output should look something like this:
variable name
valuefiltereddata fastfood
filterbetweenitem
THIS IS MY CODE SO FAR: model lmtotalfat ~ cholesterol totalcarb vita restaurant, data filtereddata
stdcoeffs lmbetamodel
significantpredictors namesstdcoeffswhichabsstdcoeffs
model lmtotalfat ~ data filtereddata csignificantpredictors, "totalfat"
Q strongestcoeff roundmaxstdcoeffs
Q catStrongest Standardized Coefficient:", strongestcoeff,
THIS IS THE ERROR I KEEP RECEIVING, ANY IDEA HOW TO FIX IT QError in filter:
In argument: betweenitem
Caused by error in between:
Can't combine x and left
Backtrace:
dplyr::filterfastfood betweenitem
dplyr::betweenitem
Error in filterfastfood betweenitem :
Caused by error in between:
Can't combine x and left
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
