Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[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 <su.zh@husky.neu.edu>
To   statalist <statalist@hsphsun2.harvard.edu>
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index