data(ce)
# Loads the data
mci.fit (ce, "origin_code", "store_code", "ms_obs", "traveltime",
"salesarea", "conc_all", "conc_comp")
# Output of the coefficients
# Use like lm():
mymcimodel <- mci.fit (ce, "origin_code", "store_code", "ms_obs", "traveltime",
"salesarea", "conc_all", "conc_comp")
# Save the results in new lm object
summary(mymcimodel)
# Summary of the model
mymcimodel$coefficients
# Output of the regression coefficients
mymcimodel$coefficients[1]
# Output of regression coefficient 1Run the code above in your browser using DataLab