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]

Re:Re: st: pick maximum,minimum, mode and median among scalars


From   Zhi Su <[email protected]>
To   statalist <[email protected]>
Subject   Re:Re: st: pick maximum,minimum, mode and median among scalars
Date   Tue, 9 Aug 2011 19:31:55 -0400

Dear Tirthankar,
 Thanks for the quick answer. I still have a few question.
 You suggest to use
forv i=1/4 {
	cnsreg mpg price weight displacement gear_ratio foreign length, c(`i')
	mat mBeta = (nullmat(mBeta) , e(b)')
}
  What if I only want to record some coefficients not all the
coefficients in the matrix mBeta? For example, I only want to record
coefficients of "price" and "displacement" in this case.

  And in this case, I get the maximum value for coefficient of "price"
is .00009169. How can I  identify under which constraint the regresion
produce the maximum value of the coefficient for "price"?

  Thank you!

  Su
 --------------------------------------------------------------------------------


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