Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Can I change the intercept in a linear regression model
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Can I change the intercept in a linear regression model
Date
Sat, 20 Apr 2013 13:19:28 +0100
You could always subtract the mean of your continuous variable before
running a regression.
After -summarize- the mean is available in r(mean).
Nick
[email protected]
On 20 April 2013 12:57, Daniel Herbert Opi <[email protected]> wrote:
> I am running a linear regression model that includes a continuous
> variable and a categorical variable as the independent variables.
>
> I would like to run this model with the intercept instead of running
> through zero it runs through a specified value i.e the mean of my
> continuous variable.
>
> Is there a way of doing this in Stata?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/