I am trying to fit the function:
Revenuei(time) = A0/(1+exp(-A1*(time-A2))) + B*Costsi
I have 5,000 observations of Revenue and Costs for 8 time periods (time = 0,1,...7).
A0, A1, A2, and B are constants that I am trying to fit.
I am unsure of how to fit this function in Stata using the nl command.
Does anybody have suggestions?
Related Posts with How to use nonlinear least squares regression for a vector function?
Using xtivreg2 for a lagged endogenous variable with lagged instrumentsHey everyone, I am wondering what the most efficient way of testing my IV using ivreg2. I am lookin…
Order table results by meanI'd like to produce a table of means by categorical variable that orders the results by mean, from h…
Again on revisiting the role of statistical significanceDear All, the following interesting article is available from Journal of Clinical Epidemiology: Li G…
Moving Average for Trading Data (unbalanced panel data with repeated time values)Hi State Community, I am trying to create a variable that represents the average of the prior 2 year…
Basic question: stata conditionHi I am confused a bit with the if condition in the cases below. Can anyone explain to me why the t…
Subscribe to:
Post Comments (Atom)
0 Response to How to use nonlinear least squares regression for a vector function?
Post a Comment