Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: storing z-stats after nlcom


From   rgutierrez@stata.com (Roberto G. Gutierrez, StataCorp)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: storing z-stats after nlcom
Date   Mon, 26 Jan 2004 15:16:27 -0600

Dan Rigby <Msrbpdr@fs1.ec.man.ac.uk> 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
rgutierrez@stata.com
*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index