Yanzhiping,
Thet way I initially formulated the response to your question is that you have some sort of variable Q that can be either positive or negative. I assumed you wanted to have the absolute value of Q.
If this is not the case I misunderstood your question. If thgis is the case, the code I provided is the correct way to model this problem.
best,
Gideon
how to model abs(variable) linearly Topic is solved
- Gideon Kruseman
- User
- Posts: 24
- Joined: 6 years ago
Re: how to model abs(variable) linearly
Gideon Kruseman
ex-ante and foresight lead @CIMMYT, big data focal point @CIMMYT, coordinator CoP socio-economic data @CGIAR_BigData
ex-ante and foresight lead @CIMMYT, big data focal point @CIMMYT, coordinator CoP socio-economic data @CGIAR_BigData
- Gideon Kruseman
- User
- Posts: 24
- Joined: 6 years ago
Re: how to model abs(variable) linearly
Hi Phallylka,
That's why you use the Steve and I described, so your system remains linear.
Best, Gideon
That's why you use the Steve and I described, so your system remains linear.
Best, Gideon
Gideon Kruseman
ex-ante and foresight lead @CIMMYT, big data focal point @CIMMYT, coordinator CoP socio-economic data @CGIAR_BigData
ex-ante and foresight lead @CIMMYT, big data focal point @CIMMYT, coordinator CoP socio-economic data @CGIAR_BigData