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?
Print excel after calculating Shannon entropyDear Statalists, I have a problem since I am calculating the Shannon entropy for a very huge number …
LATE Difference-in-DifferencesHi all, I'm trying to estimate a generalized DID (two periods three groups)'s local average treatme…
Creation of panel of 16 months by linking monthly samples from CPSMy main purpose is to see how a person changes job and how it affects the wage in few selective stat…
Merging datasets with same variable but different values for the variableHi. I wanted to understand the finer working of the -merge- command and it isn't clear to me from re…
reshape wide to longDear All, How can I reshpae the following wide data into long data format? Thanks. Code: * Example …
Subscribe to:
Post Comments (Atom)
0 Response to How to use nonlinear least squares regression for a vector function?
Post a Comment