18.07.2014 Views

Modelado prediccion enfermedades cultivos - edUTecNe ...

Modelado prediccion enfermedades cultivos - edUTecNe ...

Modelado prediccion enfermedades cultivos - edUTecNe ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Modelado</strong> para la predicción de <strong>enfermedades</strong> en <strong>cultivos</strong> de alto valor comercial<br />

data Conc1;<br />

SET c1;by anio dj;<br />

tmed=(tmax+tmin)/2;<br />

pr1=lag1(prec);pr2=lag2(prec);<br />

pr3=lag3(prec);pr4=lag4(prec);pr5=lag5(prec);pr6=lag6(prec);pr7=lag7(p<br />

rec);pr8=lag8(prec);pr9=lag9(prec);pr10=lag10(prec);pr11=lag11(prec);p<br />

r12=lag12(prec);pr13=lag13(prec);pr14=lag14(prec);<br />

hrd1=lag1(hrd);hrd2=lag2(hrd);hrd3=lag3(hrd);hrd4=lag4(hrd);hrd5=lag5(<br />

hrd);hrd6=lag6(hrd);hrd7=lag7(hrd);hrd8=lag8(hrd);hrd9=lag9(hrd);hrd10<br />

=lag10(hrd);hrd11=lag11(hrd);hrd12=lag12(hrd);hrd13=lag13(hrd);hrd14=l<br />

ag14(hrd);<br />

tmin1=lag1(tmin);tmin2=lag2(tmin);tmin3=lag3(tmin);tmin4=lag4(tmin);tm<br />

in5=lag5(tmin);tmin6=lag6(tmin);tmin7=lag7(tmin);tmin8=lag8(tmin);tmin<br />

9=lag9(tmin);tmin10=lag10(tmin);tmin11=lag11(tmin);tmin12=lag12(tmin);<br />

tmin13=lag13(tmin);tmin14=lag14(tmin);<br />

tmax1=lag1(tmax);tmax2=lag2(tmax);tmax3=lag3(tmax);tmax4=lag4(tmax);tm<br />

ax5=lag5(tmax);tmax6=lag6(tmax);tmax7=lag7(tmax);tmax8=lag8(tmax);tmax<br />

9=lag9(tmax);tmax10=lag10(tmax);tmax11=lag11(tmax);tmax12=lag12(tmax);<br />

tmax13=lag13(tmax);tmax14=lag14(tmax);<br />

run;<br />

data Fc2;set conc1;<br />

DPrHRT =0;DTxnN=0;DTnN=0;DPrHR=0;FPr=0; DTxnP=0;<br />

DHR=0; retain DPrHRT DTxnP DTxnN DTnN DPrHR FPr DHR;<br />

TnM=(tmin1+tmin2+tmin3+tmin4+tmin5+tmin6+tmin7+tmin8+tmin9+tmin10+tmin<br />

11+tmin12+tmin13+tmin14)/14;<br />

TxM=(tmax1+tmax2+tmax3+tmax4+tmax5+tmax6+tmax7+tmax8+tmax9+tmax10+tmax<br />

11+tmax12+tmax13+tmin14)/14;<br />

if hrd1>65 and pr1>0.2 then do;if tmax116 then<br />

DPrHRT+1;end;if hrd2>65 and pr2>0.2 then do;if tmax216<br />

then DPrHRT +1;end;if hrd3>65 and pr3>0.2 then do;if tmax316 then DPrHRT +1;end;if hrd4>65 and pr4>0.2 then do;if tmax416 then DPrHRT +1;end;if hrd5>65 and pr5>0.2 then do;if<br />

tmax516 then DPrHRT +1;end;if hrd6>65 and pr6>0.2 then<br />

do;if tmax616 then DPrHRT +1;end;if hrd7>65 and pr7>0.2<br />

then do;if tmax716 then DPrHRT +1;end;if hrd8>65 and<br />

pr8>0.2 then do;if tmax816 then DPrHRT +1;end;<br />

if hrd9>65 and pr9>0.2 then do;if tmax916 then DPrHRT<br />

+1;end;if hrd10>65 and pr10>0.2 then do;if tmax1016<br />

then DPrHRT +1;end;if hrd11>65 and pr11>0.2 then do;if tmax1116 then DPrHRT +1;end;if hrd12>65 and pr12>0.2 then do;if<br />

tmax1216 then DPrHRT +1;end;if hrd13>65 and pr13>0.2<br />

then do;if tmax1316 then DPrHRT +1;end;if hrd14>65 and<br />

pr14>0.2 then do;if tmax1416 then DPrHRT +1;end;<br />

if tmax116 then DTxnP+1;if tmax216 then<br />

DTxnP+1;if tmax316 then DTxnP+1;if tmax416<br />

then DTxnP+1;if tmax516 then DTxnP+1;if tmax616 then DTxnP+1;if tmax716 then DTxnP+1;if<br />

tmax816 then DTxnP+1;if tmax916 then<br />

DTxnP+1;if tmax1016 then DTxnP+1;if tmax1116 then DTxnP+1;if tmax1216 then DTxnP+1;if<br />

tmax1316 then DTxnP+1;if tmax1416 then<br />

DTxnP+1;<br />

if hrd1>65 and pr1>0.2 then do;DPrHR+1;end;if hrd2>65 and pr2>0.2 then<br />

do; DPrHR+1;end;if hrd3>65 and pr3>0.2 then do;DPrHR+1;end;<br />

if hrd4>65 and pr4>0.2 then do;DPrHR+1;end;if hrd5>65 and pr5>0.2 then<br />

do; DPrHR+1;end;if hrd6>65 and pr6>0.2 then do;DPrHR+1;end;<br />

if hrd7>65 and pr7>0.2 then do;DPrHR+1;end;if hrd8>65 and pr8>0.2 then<br />

do; DPrHR+1;end;if hrd9>65 and pr9>0.2 then do;DPrHR+1;end;<br />

173

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!