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

st: RE: RE: predictnl and nonlinear regression

From   "Wallace, John" <>
To   <>
Subject   st: RE: RE: predictnl and nonlinear regression
Date   Mon, 8 Aug 2005 09:42:22 -0700

-----Begin Original Message-----
From: Scott Merryman
Sent: Friday, August 05, 2005 7:16 PM
Subject: st: RE: predictnl and nonlinear regression

> -----Original Message-----
> From: Wallace, John
> .  nl(y = {beta}*exp({alpha}*x)
> I then looked for a way to generate confidence intervals 

You don't need the y term in the -predictnl- statement.

. predictnl fit = _b[beta]*exp(_b[alpha]*mpg), ci(lb ub)

> Also, is it possible to use the stored estimation command
interactively to
> solve for a specific x?

How about using -nlcom-.  For example, if price = 1000:

. nlcom (ln(1000/_b[beta]))/_b[alpha]

-----End Original Message-----

Thanks very much for the advice, Scott.  Those solutions were exactly
what I was looking for.

Best Regards,
John Wallace

*   For searches and help try:

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