<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SPATIAL ANALYSIS IN PROC MIXED in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/259010#M57413</link>
    <description>&lt;P&gt;Unless you are using a very old SAS/STAT version, you should replace MAKE statements which are not documented anymore with ODS OUTPUT statements. There is no output table named &lt;EM&gt;predicted&lt;/EM&gt;. Predicted values are given in the dataset named in option outp= in the MODEL statement.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2016 02:49:49 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-03-25T02:49:49Z</dc:date>
    <item>
      <title>SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258667#M57382</link>
      <description>&lt;P&gt;Hello people,&lt;/P&gt;&lt;P&gt;I´m&amp;nbsp;doing a simulation study about spatial analysis with&amp;nbsp;variety trials designed in augmented block.&amp;nbsp;The basic material of this study was an&amp;nbsp;evaluation trial of soybean lines, with five check varieties (of fixed effect) and 110 new genotypes&amp;nbsp;(of random effects).&lt;/P&gt;&lt;P&gt;But I can´t resolve the analysis when in "&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model PG=BLOCO C / DDFM=SATTERTH P;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;I don´t know how to proceed before it. The error appeared:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model PG= BLOCO C / ddfm=SATTERTH P;&lt;BR /&gt;-----&lt;BR /&gt;180&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me!&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data TAB_51;
infile 'C:\Dados\TAB_51.prn';
input PARCELA COORDX COORDY BLOCO GENOT$ TIPO$ PG;
C=GENOT; if TIPO='New' then C=0;
if TIPO='New' then NEW=1; else NEW=0;
run;
proc mixed data=TAB_51;
class BLOCO C GENOT;
model PG=BLOCO C / DDFM=SATTERTH P;
random GENOT*NEW / solution cl;
id PARCELA COORDX COORDY BLOCO GENOT TIPO;
contrast 'TESTEMUNHAS' C 0 1 -1 0 0 0,
                       C 0 0 1 -1 0 0,
					   C 0 0 0 1 -1 0,
					   C 0 0 0 0 1 -1;
contrast 'TESTs vs PROGs' C -5 1 1 1 1 1;
contrast 'PROG1 vs PROG2' | GENOT*NEW 1 -1;
contrast 'PROG2 vs PROG3' | GENOT*NEW 0 1 -1;
lsmeans C / cl;
make 'fitting' out=R_IND (rename=(value=VAL_RI));
make 'solutionr' out=EBLUPs;
make 'predicted' out=OBS_PRED;
run;
proc sort data=EBLUPs; by descending _EST_;
proc print; run;
proc autoreg data=OBS_PRED;
model _resid_= / dw=10 dwprob;
run;
proc mixed data=OBS_PRED;
model _resid_= ;
repeated / sub=intercept type=sp (EXP) (COORDX COORDY);
parms (0 to 30 by .5) (100000 to 200000 by 5000);
run;
proc mixed data=TAB_51 noprofile;
class BLOCO C GENOT;
model PG= BLOCO C / ddfm=satterth;
random GENOT*NEW / solution cl;
repeated / sub=intercept type=sp(EXP) (COORDX COORDY);
parms (17242.02) (126450) (6.8) / noiter;
contrast 'TESTEMUNHAS' C 0 1 -1 0 0 0,
                       C 0 0 1 -1 0 0,
					   C 0 0 0 1 -1 0,
					   C 0 0 0 0 1 -1;
contrast 'TESTs vs PROGs' C -5 1 1 1 1 1;
contrast 'PROG1 vs PROG2' | GENOT*NEW 1 -1;
contrast 'PROG2 vs PROG3' | GENOT*NEW 0 1 -1;
lsmeans C / cl;
make 'solutionr' out=EBLUPs;
make 'fitting' out=R_ESP (rename=(value=VAL_RE));
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 23:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258667#M57382</guid>
      <dc:creator>EURIANN</dc:creator>
      <dc:date>2016-03-23T23:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258672#M57383</link>
      <description>&lt;P&gt;On&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model PG=BLOCO C / DDFM=SATTERTH P;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;what is the P requesting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 23:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258672#M57383</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-23T23:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258705#M57386</link>
      <description>&lt;P&gt;P informs&amp;nbsp;predicted values&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 02:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258705#M57386</guid>
      <dc:creator>EURIANN</dc:creator>
      <dc:date>2016-03-24T02:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258714#M57388</link>
      <description>&lt;P&gt;P is a proc reg option. If you want predicted values in proc mixed use OUTP=myDataset&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 02:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258714#M57388</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-03-24T02:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258795#M57396</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;model PG=BLOCO C / DDFM=SATTERTH outp=TAB_51;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258795#M57396</guid>
      <dc:creator>EURIANN</dc:creator>
      <dc:date>2016-03-24T13:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258872#M57406</link>
      <description>&lt;P&gt;Do not use the name of your input data set if you want to keep it. Your result would create a new tab_51 with the predicitons but lose your original data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest outp=tab_51P;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 16:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258872#M57406</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-24T16:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258983#M57411</link>
      <description>&lt;P&gt;Thanks for everyone! The&amp;nbsp;coments help me to execute part from the analysis. But now another error occurs on&amp;nbsp;&lt;/P&gt;&lt;P&gt;data set WORK.OBS_PRED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;proc mixed data=TAB;&lt;BR /&gt;32 class BLOCO C GENOT;&lt;BR /&gt;33 model PG=BLOCO C / DDFM=SATTERTH outp=tab_51P;&lt;BR /&gt;34 random GENOT*NEW / solution cl;&lt;BR /&gt;35 id PARCELA COORDX COORDY BLOCO GENOT TIPO;&lt;BR /&gt;36 contrast 'TESTEMUNHAS' C 0 1 -1 0 0 0,&lt;BR /&gt;37 C 0 0 1 -1 0 0,&lt;BR /&gt;38 C 0 0 0 1 -1 0,&lt;BR /&gt;39 C 0 0 0 0 1 -1;&lt;BR /&gt;40 contrast 'TESTs vs PROGs' C -5 1 1 1 1 1;&lt;BR /&gt;41 contrast 'PROG1 vs PROG2' | GENOT*NEW 1 -1;&lt;BR /&gt;42 contrast 'PROG2 vs PROG3' | GENOT*NEW 0 1 -1;&lt;BR /&gt;43 lsmeans C / cl&lt;BR /&gt;44   make 'fitstatistics' out=R_IND (rename=(value=VAL_RI));
45   make 'solutionr' out=EBLUPs;
46   make 'predicted' out=OBS_PRED;
47   run;

NOTE: Convergence criteria met.
NOTE: The data set WORK.TAB_51P has 127 observations and 13 variables.
NOTE: The data set WORK.R_IND has 4 observations and 2 variables.
NOTE: The data set WORK.EBLUPS has 115 observations and 10 variables.
NOTE: The data set &lt;FONT color="#000000"&gt;W&lt;STRONG&gt;ORK.OBS_PRED has 0 observations and 0 variables.&lt;/STRONG&gt;&lt;/FONT&gt;
WARNING: Data set WORK.OBS_PRED was not replaced because new file is incomplete.
NOTE: PROCEDURE MIXED used (Total process time):
      real time           0.30 seconds
      cpu time            0.29 seconds


48   proc sort data=EBLUPs; by descending _est_; run; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;/*It informs that this internal variable do not exist*\&lt;/STRONG&gt;&lt;/FONT&gt;
ERROR: Variable _EST_ not found.

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think tis problems occurs due ddfm=satterth comand. What do you think?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 22:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/258983#M57411</guid>
      <dc:creator>EURIANN</dc:creator>
      <dc:date>2016-03-24T22:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/259010#M57413</link>
      <description>&lt;P&gt;Unless you are using a very old SAS/STAT version, you should replace MAKE statements which are not documented anymore with ODS OUTPUT statements. There is no output table named &lt;EM&gt;predicted&lt;/EM&gt;. Predicted values are given in the dataset named in option outp= in the MODEL statement.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 02:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/259010#M57413</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-03-25T02:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/260211#M57520</link>
      <description>&lt;P&gt;Ok. So how can I request predicted values in another dataset to use in&amp;nbsp;further processing?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 19:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/260211#M57520</guid>
      <dc:creator>EURIANN</dc:creator>
      <dc:date>2016-03-30T19:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/260212#M57521</link>
      <description>&lt;P&gt;As I said : "&lt;SPAN&gt;Predicted values are given in the dataset named in option outp= in the MODEL statement.&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_mixed_sect032.htm" target="_blank"&gt;outp= Example&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 20:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/260212#M57521</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-03-30T20:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/260222#M57523</link>
      <description>&lt;P&gt;Ok. So how can I request predicted values in outp=tab_51P and create a new data set to use in futher processing?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 20:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/260222#M57523</guid>
      <dc:creator>EURIANN</dc:creator>
      <dc:date>2016-03-30T20:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: SPATIAL ANALYSIS IN PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/260267#M57530</link>
      <description>In: proc sort data=EBLUPS; by descending _est_; run; Occurs another error: Variable _EST_ not found. What it can be?</description>
      <pubDate>Wed, 30 Mar 2016 23:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SPATIAL-ANALYSIS-IN-PROC-MIXED/m-p/260267#M57530</guid>
      <dc:creator>EURIANN</dc:creator>
      <dc:date>2016-03-30T23:09:01Z</dc:date>
    </item>
  </channel>
</rss>

