My dataframe looks something like this -
df <- data.frame(Speed_Satisfaction=sample(seq(from = 0, to = 1, by = 0.01), size = 1000, replace = TRUE),
Cleanliness_Satisfaction=sample(seq(from = 0, to = 1, by = 0.01), size = 1000, replace = TRUE),
Efficiency_Satisfaction=sample(seq(from = 0, to = 1, by = 0.01), size = 1000, replace = TRUE),
Variety_Satisfaction=sample(seq(from = 0, to = 1, by = 0.01), size = 1000, replace = TRUE),
Friendliness_Satisfaction=sample(seq(from = 0, to = 1, by = 0.01), size = 1000, replace = TRUE),
Overall_Satisfaction=sample(seq(from = 0, to = 1, by = 0.01), size = 1000, replace = TRUE))
My Objective
I'd like to determine which of my 5 variables is most important in determining Overall_Satisfaction
for services provided in a restaurant. And rank these variables in order of their importance.
The satisfaction scores in my df
are on a scale from 0 to 1, where 1 equals 100% satisfaction and 0 is 0% satisfaction.
My Approach
I chose to model my data using multiple linear regression (the lm
function in R) to identify the most significant variables.
fit <- lm(Overall_Satisfaction ~ Speed_Satisfaction + Cleanliness_Satisfaction + Variety_Satisfaction + Friendliness_Satisfaction, data=df)
And the analyse the results using summary
This way, I can study the Estimates
(negative or positive indicating the direction of the relationship with the target variable) and the P value
to rank variables according to how statistically significant they are.
My Question
Is this the best approach for the problem I'm trying to solve with the data I have, or are there other methods that yield better results?
I am still exploring statistics and R, so your inputs will be greatly appreciated.