how can calculate number of positive obs in the series?
when i use this command message error "syntax error"
Code: Select all
scalar nobsp
nobsp=@obs(resid) if resid>0
have you an idea with this case.
Moderators: EViews Gareth, EViews Moderator
Code: Select all
scalar nobsp
nobsp=@obs(resid) if resid>0
Code: Select all
series posSum = @sum(resid>0)
Code: Select all
scalar nobsp
nobop=@sum(resid>0)
Code: Select all
series posres = resid>0
series runs = @recode(@trend=0, 1, (resid>0 and resid(-1)>0) or (resid<0 and resid(-1)>0))
scalar nobsp = @sum(posres)
scalar nobsr = @sum(runs)
Code: Select all
series runs = @recode(@trend=0, 1, (resid>0 and resid(-1)<0) or (resid<0 and resid(-1)>0))
Return to “General Information and Tips and Tricks”
Users browsing this forum: No registered users and 18 guests