<?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: Create dummy variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538491#M6962</link>
    <description>Seemingly unrelated regression.</description>
    <pubDate>Mon, 25 Feb 2019 23:20:34 GMT</pubDate>
    <dc:creator>Tobiasp94</dc:creator>
    <dc:date>2019-02-25T23:20:34Z</dc:date>
    <item>
      <title>Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538462#M6946</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skærmbillede 2019-02-25 kl. 22.48.40.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27431i8485E51036593B53/image-size/large?v=v2&amp;amp;px=999" role="button" title="Skærmbillede 2019-02-25 kl. 22.48.40.png" alt="Skærmbillede 2019-02-25 kl. 22.48.40.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need help changing my year variable into a dummy variable, so i can run this macro.&amp;nbsp;&lt;BR /&gt;The variable year variable is currently a numeric variable (2010-2017).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 21:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538462#M6946</guid>
      <dc:creator>Tobiasp94</dc:creator>
      <dc:date>2019-02-25T21:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538465#M6947</link>
      <description>&lt;P&gt;Most likely, you will end up using YEAR as is.&amp;nbsp; Analytical procedures will normally let you use this statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;class year;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will create dummy variables as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really have to have a dummy variable, one dummy variable is not enough.&amp;nbsp; You have 8 values for YEAR.&amp;nbsp; You will need 7 dummy variables (rarely 8, depending on your intentions).&amp;nbsp; Does that fit your plan?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 22:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538465#M6947</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-25T22:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538466#M6948</link>
      <description>&lt;P&gt;Here's one way, data step methods:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
*declare an array;
array _years(2012:2017) year2012-year2017;

*set all values to 0 initially;
do i=lbound(_years) to hbound(_years);
    _years(i) = 0;
end;

*assign year to 1;
_years(year) = 1;



&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and here's another, more automated:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-dummy-variables-Categorical-Variables/ta-p/308484" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-dummy-variables-Categorical-Variables/ta-p/308484&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS please post your code as text not as an image. An image means if we wanted to modify or include your code we have to type it out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263399"&gt;@Tobiasp94&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skærmbillede 2019-02-25 kl. 22.48.40.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27431i8485E51036593B53/image-size/large?v=v2&amp;amp;px=999" role="button" title="Skærmbillede 2019-02-25 kl. 22.48.40.png" alt="Skærmbillede 2019-02-25 kl. 22.48.40.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I need help changing my year variable into a dummy variable, so i can run this macro.&amp;nbsp;&lt;BR /&gt;The variable year variable is currently a numeric variable (2010-2017).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 22:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538466#M6948</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-25T22:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538468#M6949</link>
      <description>How do I use the class statement in the macro?&lt;BR /&gt;If i have to create a dumme wouldn´t it be&lt;BR /&gt;2010=0&lt;BR /&gt;2011=1&lt;BR /&gt;........&lt;BR /&gt;2017= 8 ?</description>
      <pubDate>Mon, 25 Feb 2019 22:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538468#M6949</guid>
      <dc:creator>Tobiasp94</dc:creator>
      <dc:date>2019-02-25T22:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538470#M6950</link>
      <description>&lt;P&gt;Assuming you successfully did something along these lines:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2010=0&lt;/P&gt;
&lt;P&gt;2011=1&lt;/P&gt;
&lt;P&gt;2012=2&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;2017=7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would be no better off than if you had done nothing.&amp;nbsp; The original variable YEAR with values 2010-2017 could have been used any place these new values could be used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want advice about using a set of values within a macro, you might need to post the macro.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 22:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538470#M6950</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-25T22:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538474#M6951</link>
      <description>I can se that this creates a dummies.&lt;BR /&gt;But i can´t get it to work in my model.&lt;BR /&gt;The idea is that year will take a value of time=1 time=2 time=3 etc.&lt;BR /&gt;&lt;BR /&gt;Thank you for your quick response&lt;BR /&gt;&lt;BR /&gt;%let yvar=COPD;&lt;BR /&gt;&lt;BR /&gt;%let xvars=Healthexpenditure Share_18_66 Share67_ Healthcosts Healthcosts_cofinancing Costelderlyadults Incomefromtaxes Costsports Socioeconomicindex Vocationaleducation Furthereducation Westerns Nonwesterns Dailysmokers Heavysmokers Physicalactivity Unhealthydiet Alcohol Familycontact;&lt;BR /&gt;&lt;BR /&gt;%let wset=wnykom94;&lt;BR /&gt;&lt;BR /&gt;%let datset=final;&lt;BR /&gt;&lt;BR /&gt;%let region=Kkode;&lt;BR /&gt;&lt;BR /&gt;%let time=year;&lt;BR /&gt;&lt;BR /&gt;libname wcat '/folders/myfolders/sasuser.v94';&lt;BR /&gt;&lt;BR /&gt;data set1; set work.&amp;amp;datset;&lt;BR /&gt;data sety; set set1; by year;if first.year;&lt;BR /&gt;yearch=put(year,4.);&lt;BR /&gt;&lt;BR /&gt;proc iml;&lt;BR /&gt;print 'SUR model, assuming equal coefficients across time periods',,;&lt;BR /&gt;use set1;&lt;BR /&gt;yname={&amp;amp;yvar};&lt;BR /&gt;read all var yname into y;&lt;BR /&gt;xname={&amp;amp;xvars};&lt;BR /&gt;incxname={'Constant'}||xname;&lt;BR /&gt;read all var xname into x0;&lt;BR /&gt;use sety;&lt;BR /&gt;read all var {'year'} into year;&lt;BR /&gt;read all var {'yearch'} into yearch;</description>
      <pubDate>Mon, 25 Feb 2019 22:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538474#M6951</guid>
      <dc:creator>Tobiasp94</dc:creator>
      <dc:date>2019-02-25T22:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538476#M6952</link>
      <description>Not familiar with IML, so here is an educated guess.  If you create a new variable in this way:&lt;BR /&gt;&lt;BR /&gt;Time = year - 2010;&lt;BR /&gt;&lt;BR /&gt;Couldn't you just use Time instead of Year within IML?</description>
      <pubDate>Mon, 25 Feb 2019 22:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538476#M6952</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-25T22:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538479#M6953</link>
      <description>Im really not that experienced in SAS, so i have difficulties creating a new variable and implementing it into my macro.</description>
      <pubDate>Mon, 25 Feb 2019 22:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538479#M6953</guid>
      <dc:creator>Tobiasp94</dc:creator>
      <dc:date>2019-02-25T22:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538480#M6954</link>
      <description>&lt;P&gt;You are doing some type of modeling in IML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless it is a modeling technique not available elsewhere in SAS, don't do it in IML. Save yourself a lot of trouble, use the modeling PROCs that SAS has built and debugged, most of which use the CLASS statement so you don't have to create your own dummy variables.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 22:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538480#M6954</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-25T22:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538483#M6955</link>
      <description>In that case you are probably best off removing all the macro language.  Any place you see an ampersand, get rid of it.  For example, replace &amp;amp;yvar with an actual variable name.  That way, you stand a fighting chance of understanding your final program.</description>
      <pubDate>Mon, 25 Feb 2019 23:02:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538483#M6955</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-25T23:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538484#M6956</link>
      <description>How would you suggest me to use the class statement. I have created a balanced dataset before i created the macro. I could easily use the class statement in to create a new data sheet before i run the macro with new values?&lt;BR /&gt;I would like if you could give me the specific kode since im not use to work in SAS.</description>
      <pubDate>Mon, 25 Feb 2019 23:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538484#M6956</guid>
      <dc:creator>Tobiasp94</dc:creator>
      <dc:date>2019-02-25T23:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538485#M6957</link>
      <description>Im sorry i can´t do that. I have an assignment due to tomorrow and there is no way i can get it done without the macro.&lt;BR /&gt;What if a implemented the class year statement in my dataset before i implemente the dataset in my macro?&lt;BR /&gt;What would the specific code be then?</description>
      <pubDate>Mon, 25 Feb 2019 23:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538485#M6957</guid>
      <dc:creator>Tobiasp94</dc:creator>
      <dc:date>2019-02-25T23:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538486#M6958</link>
      <description>Have you tried using YEAR just as is? Has that caused an issue? You haven't posted any code so far that seems to require dummy variables, so it's hard to understand what you need here. Or why.</description>
      <pubDate>Mon, 25 Feb 2019 23:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538486#M6958</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-25T23:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538487#M6959</link>
      <description>Hi Reeza.&lt;BR /&gt;I have tried with the variable year since i have data for 2010-2017 and the value is numeric i had som terrible results:&lt;BR /&gt;My goal is to create a SUR estimation model assuming equal coefficient across time periods.&lt;BR /&gt;&lt;BR /&gt;%let yvar=COPD;&lt;BR /&gt;%let xvars=Healthexpenditure Share_18_66 Share67_ Healthcosts Healthcosts_cofinancing Costelderlyadults Incomefromtaxes Costsports Socioeconomicindex Vocationaleducation Furthereducation Westerns Nonwesterns Dailysmokers Heavysmokers Physicalactivity Unhealthydiet Alcohol Familycontact;&lt;BR /&gt;%let wset=wnykom94;&lt;BR /&gt;%let datset=final;&lt;BR /&gt;%let region=Kkode;&lt;BR /&gt;%let time=year;&lt;BR /&gt;&lt;BR /&gt;libname wcat '/folders/myfolders/sasuser.v94';&lt;BR /&gt;&lt;BR /&gt;data set1; set work.&amp;amp;datset;&lt;BR /&gt;data sety; set set1; by year;if first.year;&lt;BR /&gt;yearch=put(year,4.);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc iml;&lt;BR /&gt;print 'SUR model, assuming equal coefficients across time periods',,;&lt;BR /&gt;use set1;&lt;BR /&gt;yname={&amp;amp;yvar};&lt;BR /&gt;read all var yname into y;&lt;BR /&gt;xname={&amp;amp;xvars};&lt;BR /&gt;incxname={'Constant'}||xname;&lt;BR /&gt;read all var xname into x0;&lt;BR /&gt;use sety;&lt;BR /&gt;read all var {'year'} into year;&lt;BR /&gt;read all var {'yearch'} into yearch;&lt;BR /&gt;use wcat.&amp;amp;wset;&lt;BR /&gt;read all var _NUM_ into w;&lt;BR /&gt;n=ncol(w);&lt;BR /&gt;do i=1 to n;&lt;BR /&gt;w[i,]=w[i,]/sum(w[i,]);&lt;BR /&gt;end;&lt;BR /&gt;n=nrow(w);&lt;BR /&gt;nt=nrow(y);&lt;BR /&gt;t=nt/n;&lt;BR /&gt;xc=j(nt,1,1)||x0;&lt;BR /&gt;k=ncol(xc); tk=t*k;&lt;BR /&gt;***********OLS estimation assuming common coefficients**************;&lt;BR /&gt;&lt;BR /&gt;bols=inv(t(xc)*xc)*t(xc)*y;&lt;BR /&gt;e=y-xc*bols;&lt;BR /&gt;&lt;BR /&gt;***SUR estimate assuming time-specific coefficients***************;&lt;BR /&gt;b=bols;&lt;BR /&gt;goon=1;&lt;BR /&gt;iter=0;maxiter=1000;&lt;BR /&gt;do while (goon=1);&lt;BR /&gt;sigma=j(t,t,0);&lt;BR /&gt;do i=1 to t;&lt;BR /&gt;do j=i to t;&lt;BR /&gt;s=t(e[(i-1)*n+1:i*n])*e[(j-1)*n+1:j*n]/n;&lt;BR /&gt;sigma[i,j]=s; sigma[j,i]=s;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;sigmai=inv(sigma);&lt;BR /&gt;kc=ncol(xc);&lt;BR /&gt;del1=j(kc,kc,0); del2=j(kc,1,0);&lt;BR /&gt;do i=1 to t;&lt;BR /&gt;do j=1 to t;&lt;BR /&gt;del1=del1+sigmai[i,j]*t(xc[(i-1)*n+1:i*n,])*xc[(j-1)*n+1:j*n,];&lt;BR /&gt;del2=del2+sigmai[i,j]*t(xc[(i-1)*n+1:i*n,])*y[(j-1)*n+1:j*n,];&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;del1=inv(del1);&lt;BR /&gt;V=del1;&lt;BR /&gt;b1=del1*del2;&lt;BR /&gt;e=y-xc*b1;&lt;BR /&gt;dif=max(abs(b-b1));iter=iter+1;&lt;BR /&gt;b=b1;&lt;BR /&gt;if (dif&amp;lt;0.0001 | iter&amp;gt;maxiter) then goon=0;&lt;BR /&gt;end;&lt;BR /&gt;print iter dif;&lt;BR /&gt;vsur=v; bsur=b;&lt;BR /&gt;ypred=xc*bsur;&lt;BR /&gt;predset=y||ypred;&lt;BR /&gt;create predset from predset[colname={'y' 'ypred'}];append from predset;&lt;BR /&gt;&lt;BR /&gt;stdbsur=sqrt(vecdiag(Vsur));&lt;BR /&gt;tsur=bsur/stdbsur;&lt;BR /&gt;esur=y-xc*bsur;&lt;BR /&gt;psur=2*(1-probnorm(abs(tsur)));&lt;BR /&gt;resultsur= bsur||stdbsur||psur;&lt;BR /&gt;resultsurname={'Estimate' 'std' 'p-value'};&lt;BR /&gt;resultsur=round(resultsur*1000)/1000;&lt;BR /&gt;print 'SUR estimation results',,yname,,&lt;BR /&gt;resultsur[rowname=incxname colname=resultsurname];</description>
      <pubDate>Mon, 25 Feb 2019 23:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538487#M6959</guid>
      <dc:creator>Tobiasp94</dc:creator>
      <dc:date>2019-02-25T23:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538489#M6961</link>
      <description>What does SUR stand for again? OLS is linear, which means my original answer was likely correct.</description>
      <pubDate>Mon, 25 Feb 2019 23:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538489#M6961</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-25T23:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538491#M6962</link>
      <description>Seemingly unrelated regression.</description>
      <pubDate>Mon, 25 Feb 2019 23:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538491#M6962</guid>
      <dc:creator>Tobiasp94</dc:creator>
      <dc:date>2019-02-25T23:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538493#M6963</link>
      <description>It seems like this code has changed my entire dataset. How do i convert it back to numeric. You suggested that the variable should stay numeric through the regression</description>
      <pubDate>Mon, 25 Feb 2019 23:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538493#M6963</guid>
      <dc:creator>Tobiasp94</dc:creator>
      <dc:date>2019-02-25T23:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538547#M6966</link>
      <description>What code and/or where? You never mentioned IML initially so my code isn't IML. Just remove that section and you need to create it using IML functions. Unfortunately I'm not familiar with IML.</description>
      <pubDate>Tue, 26 Feb 2019 03:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538547#M6966</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-26T03:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538622#M6977</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263399"&gt;@Tobiasp94&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Seemingly unrelated regression.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't have to program this yourself in PROC IML in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a hint: type SAS seemingly unrelated regression into any search engine. It's already been programmed into SAS, so you don't have to write IML code to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apparently, you will need dummy variables since there is no CLASS statement for this modeling procedure. Dummy variables are easily created by &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glmmod_examples.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en" target="_self"&gt;PROC GLMMOD&lt;/A&gt;, and by &lt;A href="https://blogs.sas.com/content/iml/2016/02/24/create-a-design-matrix-in-sas.html" target="_self"&gt;several other procedures&lt;/A&gt; in SAS. Examples are at the links.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 13:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-dummy-variable/m-p/538622#M6977</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-26T13:11:23Z</dc:date>
    </item>
  </channel>
</rss>

