Hi fellow STATA users! I have 2 main questions with a do file I have inherited
Question 1 I am trying to run a series of multivariable linear regressions, but the do file I have has a structure I am not familiar with. It is as follows:
sreg reg.lin i.block block jblock jblock4 //
p.50.scoremod i.score p.50.scoreadv //
outcome(A_MEC B_MEC C_MEC) ///
adjust(c.gender c.score i.structure i.bkgrnd)
This is not how I typically write multivariable linear regression scripts at all, and when I run this, it tells me: command sreg is not recognized. Is there a software package I don't have? I tried installing sreg but this is not an option.
Question 2. scoremod is a continuous variable on a very large scale (1-10,000) . I would like to have this variable per 50 additional points (rather than per every single additional point).
The do file I have has done this by writing "p.50" in front of the scoremod variable. But this doesn't run in STATA. Is there a software for this, or is there another way of 'scaling' this variable?
Thanks everybody for any help you can be!
Question 1 I am trying to run a series of multivariable linear regressions, but the do file I have has a structure I am not familiar with. It is as follows:
sreg reg.lin i.block block jblock jblock4 //
p.50.scoremod i.score p.50.scoreadv //
outcome(A_MEC B_MEC C_MEC) ///
adjust(c.gender c.score i.structure i.bkgrnd)
This is not how I typically write multivariable linear regression scripts at all, and when I run this, it tells me: command sreg is not recognized. Is there a software package I don't have? I tried installing sreg but this is not an option.
Question 2. scoremod is a continuous variable on a very large scale (1-10,000) . I would like to have this variable per 50 additional points (rather than per every single additional point).
The do file I have has done this by writing "p.50" in front of the scoremod variable. But this doesn't run in STATA. Is there a software for this, or is there another way of 'scaling' this variable?
Thanks everybody for any help you can be!
Comment