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?
Question1. I am about running a regress in STATA including dummies. I have logged all variables in Excel but…
Generating variable based on each ID'sHey, I have the following dataset: ID OfferBy Amount offered (€) 1 Samsung 100 1 Apple 125 …
question about didregressDear all, When I run the example code of didregress,I get very different result from Stata.com Diff…
Using egen rank to analyze the first and second half of entries in a variableHello all, I am currently working with a data set that has user reviews of different golf courses. …
Setting up DataHello everyone, I am currently facing some troubles setting up my data. I have the format like this …
Subscribe to:
Post Comments (Atom)
0 Response to How to use nonlinear least squares regression for a vector function?
Post a Comment