Search found 51 matches

by sudesh
Mon Mar 26, 2018 12:52 pm
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Thanks alots Matt..
by sudesh
Sat Mar 24, 2018 7:44 pm
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt, Last question, the code is working however I'm loosing some of the data from the start of the series. For example, the threshold starts 01 mars 1974 however the signal is starting only from 14 october 1977. I have enclosed the program and the expected series. Thanks alots. It's really appre...
by sudesh
Fri Mar 23, 2018 4:36 pm
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

For sure, give me the address and I will send the coupons
by sudesh
Fri Mar 23, 2018 4:04 pm
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt, Final step and it's working... {%sig} = @recode(casenum = 1, -!e_100, @recode(casenum = 9, 0, @recode(casenum= 17, !e_100,@recode(casenum <9,@recode({%sig}(-1) <0,{%sig}(-1) ,threshold) ,@recode({%sig}(-1) >0,{%sig}(-1) ,threshold))))) Thanks you very much, you are a life saver.... It's has...
by sudesh
Thu Mar 22, 2018 8:28 pm
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

HI Matt, I'm able to generate 80% of the expected signal, however there is two conditions that I can't figure out why the signal are not correct. when casenum = 3 & casenum(-1) = 1 and casenum =8 and casenum(-1)=3 It will be greatly appreciated if you could help me. I have attached the expected ...
by sudesh
Thu Mar 22, 2018 7:27 am
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt,

Can you help me out to finish the code.

I need to delivery them today.

Thanks for your help.

Sudesh
by sudesh
Wed Mar 21, 2018 4:31 pm
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt,

I have enclosed the case numbers of the program and the expected signal.

Once again, thanks for your help.

Sudesh
by sudesh
Wed Mar 21, 2018 2:37 pm
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt, The values did not changes, however !a_xxx are variables and therefore they can change values. My original code are enclosed which I would like to change. As you can see in my orignal code, there is a entry and an exit rule. How I can change the code in order to have the following signals. ...
by sudesh
Wed Mar 21, 2018 12:40 pm
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt, I think that the code is generating only the entry signal , however it's not keeping it until the exit rules. I'm expecting the follwing signals. Date zsc signal Comments 5/03/1974 -1.567330541 0.5 Entry per casenum 15 5/10/1974 -1.433595135 0.5 Check casenum 9 and check sig(-1), already in...
by sudesh
Wed Mar 21, 2018 12:28 pm
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt, I think that the code is working only for generating the signal but not for keeping them until the exit. As you can see, I keep the position until -0.5 >zsc < 0.5 Here !a_100 = 1.50 and s0 = 0.50 else if (zsc_{%c}_{%u}_{%x}_{%i}(!j) < !a_100 and zsc_{%c}_{%u}_{%x}_{%i}(!j) >= s0 and signal_...
by sudesh
Wed Mar 21, 2018 11:51 am
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt, I'm really sorry to bother you that much as I don't have any alternative. {%sig} = @recode(casenum = 1, -!e_100, @recode(casenum = 9, 0, @recode(casenum= 17, !e_100, @recode(@recode(casenum < 9, {%sig} < threshold, {%sig} > threshold) , {%sig}(-1), threshold)))) My understanding casenum = 1...
by sudesh
Wed Mar 21, 2018 11:11 am
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt, I'm trying to understand the code: vector (17) : creating a vector with 17 rows tmp.fill is filing tmp with the 17 values, smpl all @all, mtos(tmp,tmp2, all) is converting the vector into a series and the range have been defined by %zsc genr casenum is creating a series with the 17 values b...
by sudesh
Wed Mar 21, 2018 10:29 am
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

I don't understand why signal_B50_rel_CAD_MOD10_CN is not defined as B50 as be defined as scenario. signal_B50_rel_CAD_MOD10_CN is not defined or is an illegal command in "{%SIG} = @RECODE(CASENUM = 1, -1, @RECODE(CASENUM = 9, 0, @RECODE(CASENUM = 17, 1, @RECODE(@RECODE(CASENAME < 9, SIGNAL_B50...
by sudesh
Wed Mar 21, 2018 10:17 am
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt, In step 3, I have the following erreur message now. signal_B50_rel_CAD_MOD10_CN is not defined or is an illegal command in "{%SIG} = @RECODE(CASENUM = 1, -1, 0)". My code now vector(17) tmp tmp.fill NA, -!e_75, -!e_50, -!e_40, -!e_30, -!e_25, -!e_00, 0, NA, 0, !e_00, !e_25, !e_30,...
by sudesh
Wed Mar 21, 2018 9:20 am
Forum: Programming
Topic: Help in changing my codes from series to matrix
Replies: 32
Views: 888

Re: Help in changing my codes from series to matrix

Hi Matt,

I have enclosed the result of tmp, tmp2, casenum and threshold.

As you can see there is no data in threshold.

Did I miss a step?

I really appreciate your help as I have to optimise this code for today.

Thanks alots.

Go to advanced search