This is a Stata quetion: . regress dist_start_st1 grocery_spend pharmacy_spend f
ID: 3864236 • Letter: T
Question
This is a Stata quetion:
. regress dist_start_st1 grocery_spend pharmacy_spend food_out_spend clothing_spend household_spend personal_spend i.HHINC i.modetype i.ziphome if grocery_spend>0 | pharmacy_spend>0 | food_out_spend>0 | clothing_spend>0 | household_spend>0 | personal_spend>0 | !grocery_spend==. | !pharmacy_spend==. | !food_out_spend==. | !clothing_spend==. | !household_spend==. | !personal_spend==., robust
In this code above I am trying to regress my model but not include values of the spending categories that are zero or below, and not use observations of "."s. I need to do this without dropping those values, is this the correct way on how to do this?
Explanation / Answer
regress dist_start_st1 grocery_spend pharmacy_spend food_out_spend clothing_spend household_spend personal_spend i.HHINC i.modetype i.ziphome if grocery_spend>0 | pharmacy_spend>0 | food_out_spend>0 | clothing_spend>0 | household_spend>0 | personal_spend>0 | !grocery_spend==. | !pharmacy_spend==. | !food_out_spend==. | !clothing_spend==. | !household_spend==. | !personal_spend== robust
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.