<?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: A regression where dependant vaiable is a distribution (sum=100%) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431982#M22718</link>
    <description>&lt;P&gt;Since you want to see how changes in population relate&amp;nbsp;to changes in immigration, you will need to consider many years of data, for many countries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, it should be noted that immigration causes the country population to change. So you might want to separate the two.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2018 21:50:23 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2018-01-29T21:50:23Z</dc:date>
    <item>
      <title>A regression where dependant vaiable is a distribution (sum=100%)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431799#M22710</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to perform a regression where the dependent variable is a distribution (sum=100%). Briefly, I want to split the number of migrants among European countries according to the population size and to a country-specific parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%Migrants = Pop2013 + Country-specific parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I however do not know what kind of regression can resolve this equation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are my data. The p values do not matter here. I just want parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" width="192" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt; width: 48pt;" width="64" height="20"&gt;Country&lt;/TD&gt;
&lt;TD style="width: 48pt;" width="64"&gt;Pop2013&lt;/TD&gt;
&lt;TD style="width: 48pt;" width="64"&gt;%Migrants&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Belgium&lt;/TD&gt;
&lt;TD align="right"&gt;11137974&lt;/TD&gt;
&lt;TD align="right"&gt;0.045363&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Bulgaria&lt;/TD&gt;
&lt;TD align="right"&gt;7284552&lt;/TD&gt;
&lt;TD align="right"&gt;0.002339&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Czech Republic&lt;/TD&gt;
&lt;TD align="right"&gt;10516125&lt;/TD&gt;
&lt;TD align="right"&gt;0.009783&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Denmark&lt;/TD&gt;
&lt;TD align="right"&gt;5602628&lt;/TD&gt;
&lt;TD align="right"&gt;0.017353&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Germany&lt;/TD&gt;
&lt;TD align="right"&gt;80523746&lt;/TD&gt;
&lt;TD align="right"&gt;0.235058&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Estonia&lt;/TD&gt;
&lt;TD align="right"&gt;1320174&lt;/TD&gt;
&lt;TD align="right"&gt;0.001048&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Ireland&lt;/TD&gt;
&lt;TD align="right"&gt;4591087&lt;/TD&gt;
&lt;TD align="right"&gt;0.017725&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Greece&lt;/TD&gt;
&lt;TD align="right"&gt;11003615&lt;/TD&gt;
&lt;TD align="right"&gt;0.022731&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Spain&lt;/TD&gt;
&lt;TD align="right"&gt;46727890&lt;/TD&gt;
&lt;TD align="right"&gt;0.062909&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;France&lt;/TD&gt;
&lt;TD align="right"&gt;65600350&lt;/TD&gt;
&lt;TD align="right"&gt;0.077127&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Croatia&lt;/TD&gt;
&lt;TD align="right"&gt;4262140&lt;/TD&gt;
&lt;TD align="right"&gt;0.001663&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Italy&lt;/TD&gt;
&lt;TD align="right"&gt;59685227&lt;/TD&gt;
&lt;TD align="right"&gt;0.052722&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Cyprus&lt;/TD&gt;
&lt;TD align="right"&gt;865878&lt;/TD&gt;
&lt;TD align="right"&gt;0.004016&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Latvia&lt;/TD&gt;
&lt;TD align="right"&gt;2023825&lt;/TD&gt;
&lt;TD align="right"&gt;0.003502&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Lithuania&lt;/TD&gt;
&lt;TD align="right"&gt;2971905&lt;/TD&gt;
&lt;TD align="right"&gt;0.008913&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Luxembourg&lt;/TD&gt;
&lt;TD align="right"&gt;537039&lt;/TD&gt;
&lt;TD align="right"&gt;0.011235&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Hungary&lt;/TD&gt;
&lt;TD align="right"&gt;9908798&lt;/TD&gt;
&lt;TD align="right"&gt;0.013854&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Malta&lt;/TD&gt;
&lt;TD align="right"&gt;421364&lt;/TD&gt;
&lt;TD align="right"&gt;0.002621&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Netherlands&lt;/TD&gt;
&lt;TD align="right"&gt;16779575&lt;/TD&gt;
&lt;TD align="right"&gt;0.041267&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Austria&lt;/TD&gt;
&lt;TD align="right"&gt;8451860&lt;/TD&gt;
&lt;TD align="right"&gt;0.037958&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Poland&lt;/TD&gt;
&lt;TD align="right"&gt;38062535&lt;/TD&gt;
&lt;TD align="right"&gt;0.080412&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Portugal&lt;/TD&gt;
&lt;TD align="right"&gt;10487289&lt;/TD&gt;
&lt;TD align="right"&gt;0.005535&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Romania&lt;/TD&gt;
&lt;TD align="right"&gt;20020074&lt;/TD&gt;
&lt;TD align="right"&gt;0.070813&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Slovenia&lt;/TD&gt;
&lt;TD align="right"&gt;2058821&lt;/TD&gt;
&lt;TD align="right"&gt;0.002784&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Slovakia&lt;/TD&gt;
&lt;TD align="right"&gt;5410836&lt;/TD&gt;
&lt;TD align="right"&gt;0.002445&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Finland&lt;/TD&gt;
&lt;TD align="right"&gt;5426674&lt;/TD&gt;
&lt;TD align="right"&gt;0.009181&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;Sweden&lt;/TD&gt;
&lt;TD align="right"&gt;9555893&lt;/TD&gt;
&lt;TD align="right"&gt;0.020552&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD style="height: 15.0pt;" height="20"&gt;United Kingdom&lt;/TD&gt;
&lt;TD align="right"&gt;63905297&lt;/TD&gt;
&lt;TD align="right"&gt;0.139092&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 15:12:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431799#M22710</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2018-01-29T15:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: A regression where dependant vaiable is a distribution (sum=100%)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431801#M22711</link>
      <description>&lt;P&gt;&lt;SPAN&gt;%Migrants = Pop2013 + Country-specific parameter.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I don't see how any regression works here. Normally, the terms in the regression are variables that actually exist in your data, and slopes are estimated for the effect of the variable(s). But you can't have a regression with "Country-specific parameter" because it doesn't exist in your data set. Even with your data, the best you can get is %Migrants = intercept + slope*Pop2013, and there is no country specific anything in this regression.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you provide more details about what this "Country-specific parameter" is?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 15:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431801#M22711</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-29T15:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: A regression where dependant vaiable is a distribution (sum=100%)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431828#M22713</link>
      <description>&lt;P&gt;Maybe the regression is not the proper method. I want to have an equation in which when the population changes, the proportion of migrants also changes. For instance, if the population of UK increased by 2%, and 0% in other countries, then the proportion of migrants choosing UK would be higher.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 16:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431828#M22713</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2018-01-29T16:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: A regression where dependant vaiable is a distribution (sum=100%)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431898#M22715</link>
      <description>&lt;P&gt;Hint:&lt;/P&gt;
&lt;P&gt;Provide a small input example data set, the rules or values that need to change and the result of the application of that rule to the input data as a result data set.&lt;/P&gt;
&lt;P&gt;You rules might include how "population changes" as a data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that typically in a proportion or percentage you should define a denominator and a numerator.&lt;/P&gt;
&lt;P&gt;Are you looking to do something such that if I have&amp;nbsp; "migrants" and they are proportionally distributed across the countries relative to population total?&lt;/P&gt;
&lt;P&gt;Then Proc freq can generate a percent of total population based on a population data set with something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc freq data=have noprint;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; tables country /out=want outpct;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; weight pop2013;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but that's kind of guessing as I think your problem is not well defined to us yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 18:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431898#M22715</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-29T18:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: A regression where dependant vaiable is a distribution (sum=100%)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431982#M22718</link>
      <description>&lt;P&gt;Since you want to see how changes in population relate&amp;nbsp;to changes in immigration, you will need to consider many years of data, for many countries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, it should be noted that immigration causes the country population to change. So you might want to separate the two.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 21:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/431982#M22718</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-01-29T21:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: A regression where dependant vaiable is a distribution (sum=100%)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/432177#M22733</link>
      <description>&lt;P&gt;Maybe could try Poisson Regression. Make data like :&lt;/P&gt;
&lt;P&gt;Country Pop2013 %Migrants&amp;nbsp; total&lt;BR /&gt;Belgium 11137974&amp;nbsp; 454&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000&lt;BR /&gt;Bulgaria 7284552&amp;nbsp; &amp;nbsp;23&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;take TOTAL as an offset variable and run PROC GENMOD for Poisson Regression.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 13:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/432177#M22733</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-30T13:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: A regression where dependant vaiable is a distribution (sum=100%)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/432180#M22734</link>
      <description>&lt;P&gt;But doing this, if I use parameters on another set of values for the population, the sum of the predicted value for the 28 countries could be larger than 100%, no?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 13:42:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/432180#M22734</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2018-01-30T13:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: A regression where dependant vaiable is a distribution (sum=100%)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/432187#M22735</link>
      <description>&lt;P&gt;Yeah. You are right. But you can map it back to sum to 1.&lt;/P&gt;
&lt;P&gt;a/(a+b+....z)&amp;nbsp; &amp;nbsp;b/(a+b+....z)&amp;nbsp; &amp;nbsp;........&lt;/P&gt;
&lt;P&gt;If you want strictly sum predicted value to be 1, I think it is not possible for any Predict Model on account of error term .&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 13:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/432187#M22735</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-30T13:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: A regression where dependant vaiable is a distribution (sum=100%)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/432692#M22772</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I found a PROC which could satisfy your requirement.&lt;/P&gt;
&lt;P&gt;Check PROC BCHOICE and Check the last example of it in documentation. I think that is what you are looking for .&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-regression-where-dependant-vaiable-is-a-distribution-sum-100/m-p/432692#M22772</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-31T12:17:16Z</dc:date>
    </item>
  </channel>
</rss>

