[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: storing z-stats after nlcom
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
The -predictnl- command ([R] predictnl) exists exclusively for this purpose.
* For searches and help try: