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

Re: st: storing z-stats after nlcom

From (Roberto G. Gutierrez, StataCorp)
Subject   Re: st: storing z-stats after nlcom
Date   Mon, 26 Jan 2004 15:16:27 -0600

Dan Rigby <> 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.

*   For searches and help try:

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