Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How Do You Do A Nonlinear Least-Squares Estimation In Stata?

0
Posted

How Do You Do A Nonlinear Least-Squares Estimation In Stata?

0

Sometimes when we look at data in 2 dimensions the relationship we see reminds us of a certain kind of function. Maybe it’s a polynomial or exponential function for example. We use a technique called nonlinear least-squares estimation to get formulas that fit the data. In this eHow I will do just this with Stata. Say we have a data set that reminds us of a certain kind of function like this one. That data set clearly looks like it is being generated by an exponential function, but how do we find that function? We need to use a non-linear least squares estimation. Go to the Statistics menu then go to Linear Models and Related then go to Other and click Non-linear least squares. You will get this screen. Since we think this data set is exponential, we click “use a preprogrammed substitutable” expression and select an exponential function. Insert the dependent and independent variable and click OK. We get this output. The R^2 is .75, so this is a great fit! The coefficients at the bottom

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123