Question: 3: Logistic and Poisson regression Use Stata command. Each problem uses a different dataset. Load the respective dataset for each problem. *Categorical variable that is
3: Logistic and Poisson regression Use Stata command. Each problem uses a different dataset. Load the respective dataset for each problem. *Categorical variable that is a string with values NotTrue and YesTrue to numeric conversion with additional label so that true gets mapped to 1 and false to 0. label define thisvarlab 0 "NotTrue" 1 "YesTrue" encode thisvar, gen(thisvar_n) label(thisvarlab) 1. In this problem, you will analyze data originally from an Open Learning Initiative course to evaluate whether occurrence of low birth weight is significantly related to maternal smoking during pregnancy. The data is in the file low_birth_weight.dta located in the Homework 3 folder. Here are the variables in the dataset: LOW = Low birth weight (0=No (birth weight 2500 g) 1=Yes (birth weight < 2500 g) AGE = Age of mother (in years) LWT = Weight of mother at the last menstrual period (in pounds) RACE = Race of mother (1=White, 2=Black, 3=Other) SMOKE = Smoking status during pregnancy (0=No, 1=Yes) PTL = History of premature labor (0=None, 1=One, etc.) HT = History of hypertension (0=No, 1=Yes) UI = Presence of uterine irritability (0=No, 1=Yes) FTV = Number of physician visits during the first trimester BWT = The
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
