Hi,
I want to estimate an equation on the form
y = C1*(max(x - C2, 0) - max(x - C3, 0))
However, since I am not an experienced EViews user, I do'nt know how the implementation of the max operator can be done. Any suggestions?
Implementation of equation with max operator
Moderators: EViews Gareth, EViews Moderator
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Implementation of equation with max operator
I'm sure there are lots of different ways, but this one came immediately to mind:
Code: Select all
ls y=c(1)*(x-c(2))*(x>c(2)) - (x-c(3))*(x>c(3))
Who is online
Users browsing this forum: No registered users and 2 guests
