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?
If I were to drop the term "B*Costsi" would I be able to fit the function using the average value of Revenue across all 5000 observations for each time period?
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?
If I were to drop the term "B*Costsi" would I be able to fit the function using the average value of Revenue across all 5000 observations for each time period?
Comment