Bookmark and Share

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]

st: Constrained Regression in Stata


From   Meg22 <[email protected]>
To   [email protected]
Subject   st: Constrained Regression in Stata
Date   Thu, 2 Jun 2011 16:24:27 -0700 (PDT)

Hi!

I need to do a constrained regression in stata-I need all the beta
coefficents to be positive and sum to 1. 

I have 11 independent variables so my regression is:
reg Rrf bills it lt cor lcvalue lcgrowth medcap smallcap noncanbonds us jap
if fundno ==`i'

I need all the betas to be positive, sum to 1 and there to be a constant. 

I got the summing to 1 bit I think:
constraint define 1 bills + it + lt + cor + lcvalue + lcgrowth + medcap +
smallcap + noncanbonds + us + jap = 1
cnsreg  Rrf bills it lt cor lcvalue lcgrowth medcap smallcap noncanbonds us
jap, constraint(1)

But I cant add the positive coefficents but

Can anyone help me with this? Im relatively new to Stata and cant figure
this out at all!!

Thanks a lot! 

--
View this message in context: http://statalist.1588530.n2.nabble.com/Constrained-Regression-in-Stata-tp6433317p6433317.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index