Let's say I'm running a model to look at questions asked on a form. My model looks like:
Price = B0 + B1(Gender) + B2(Age) + B3(Credit Type) + B4(Home) ...
I'm trying to calculate expected price for every possible scenario.
So price for gender = 0, age = 18, home = 1, etc. Price for gender = 1, age = 18, home = 1, etc. ... and so forth
In R, is there a way to get the predicted price (output) for all possible combinations of the independent variables.
library(car) mod = lm(sold ~ age + gender + marital + educ + cars + license + credit + type + home + id) summary(mod)
EDIT: After reading some of the comments below, I realized the stupidity of what I was doing. But I'm still wondering if there's a way to find the expected price. A general measure of what would the price be given the values/variables in this model.
So lets that that from the model, is there a way to glean the expected price. Let's say that it's $10 given the model.
EDIT 2: Actually, just to figure it out in R, can anyone point to how I can perform the original task. The predicted value for all variations of the predictors.