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?
Saving probability distribution of variable under certain conditions and assigning random value from distributionHello, I am trying to save the probability distribution of a variable under certain conditions so t…
overcome serial correlation error terms in fixed effectsHi there, I was wondering if someone could clear up a problem I have. I have to review the assumpti…
Default xlabel valuesHi all, I am writing a program to overlay an additional graph to an existing graph through addplot.…
Creating a histogram with categorical dataHi everyone, I am trying to create a histogram with a string variable. In the example dataset below…
creating a variable based on an observation of another variableHi, for the life of me I can't find any help on this. Obviously, I don't know what search terms to u…
Subscribe to:
Post Comments (Atom)
0 Response to How to use nonlinear least squares regression for a vector function?
Post a Comment