Dan Rigby <[email protected]> fits a model and then performs:
> nlcom -1*[[ _b[grpA]+_b[grpApca1]* 2 + _b[grpAage]*16 + _b[grpAage2]*16*16]
> / _b[price] ]
He then asks:
> This gives a z-statistic to allow significance of the WTP to be determined
> for such an individual. At the moment, I can only determine these
> significances if I insert example age and attitude values.
> What I want to do is calculate and store this significance for each person,
> i.e. each observation, in the dataset.
> Is it possible to do this calculation for every observation and store these
> z-statistic values as a new variable. This would allow me to replace the
> WTPs with a zero if the z-statistic falls below a critical value (2, for
> example).
The -predictnl- command ([R] predictnl) exists exclusively for this purpose.
--Bobby
[email protected]
*
* 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/