Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Simple Regression


From   [email protected]
To   [email protected]
Subject   st: Simple Regression
Date   Sun, 6 Jan 2008 13:38:03 EST

Hello everyone,

I am still a  beginner with stata, so please dont be surprised about my 
questions... :)
I  am trying to make a simple regression with stata of the folowing form:
reg  NumberOfGrandParents YearOfBirth 
predict NumberOfGrandParents_p

My  problem now is, that NumberOfGrandParents can only take "full" numbers 
and of  course cant exceed "4" or cant be smaller than 0. Is there any way to 
implement  that?

Thank you,
Markus.  




   
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index