Dear stalist
I am running a piecewise regression. I want to use a dataset that contains two different years, 2016 and 2017. I will include a if function to tell STATA which year to run the regression on. However when i run the regression i get an error message saying: " starting values invalid or some RHS variables have missing values". Any ideas on how to solve this?
This is my function: nl (KOSTBHG = SIZE*{b1} + (SIZE>{c})*( SIZE-{c})*{b2} if Year==2017), variables(SIZE) initial(b1 0 c 0 b2 0) noconstant trace
Related Posts with Piecewise regression
Changing markers in marginsplotHey everyone I would like to use marginsplot for something like this: Code: sysuse auto, clear r…
commandsMy name is Alex Kinuthia, a graduate student in Egerton University pursuing a Master Degree in Agrie…
combining dotplot graphsI can't succed in combining dotplot graphs: I have there distinct groups of observations, marked wit…
Fixed vs Random Effects - help regarding choiceHello together, I am regressing a panel data model with t=12 and n=230. In general, I measure the e…
Hsiao test, error 2001Dear all, I'm trying to execute a Hsiao test. Thus, I have the following and basic code: codebook …
Subscribe to:
Post Comments (Atom)
0 Response to Piecewise regression
Post a Comment