Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote