<?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: Predicting an event in a dataset from logit parameters (from another dataset) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/612057#M29603</link>
    <description>&lt;P&gt;I can't. The model is estimated in a secured lab, while the dataset for the prediction is on my laptop.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2019 15:59:05 GMT</pubDate>
    <dc:creator>Demographer</dc:creator>
    <dc:date>2019-12-16T15:59:05Z</dc:date>
    <item>
      <title>Predicting an event in a dataset from logit parameters (from another dataset)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/610637#M29555</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have parameters from a logit model predicting the labor force participation in the dataset lfp.csv. The dataset is produced using the outset statement from proc logit. The model is stratified by sex (0 1) and has some interaction variables (edu*grage). I want to use those parameters to predict the probability of the event to individuals in another dataset pop_2010 (which is not the dataset used to estimate parameters).&lt;/P&gt;
&lt;P&gt;I read that the proc score can only work with parameters from linear regression, but not with logit. The store statement within the proc logit cannot be used too, since I don’t want to predict on the same dataset (and the prediction should be done without having access to the dataset used to estimate parameters).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to do it quick and short?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 08:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/610637#M29555</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2019-12-10T08:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting an event in a dataset from logit parameters (from another dataset)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/610765#M29558</link>
      <description>&lt;P&gt;Check either the CODE statement in PROC LOGISTIC (logit isn't a proc as far as I know so assuming you're referring to logistic). I think GLM has a similar statement.&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_logistic_syntax08.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=15.1&amp;amp;docsetTarget=statug_logistic_syntax08.htm&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or use PROC PLM and make sure to specify that the iLink option. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/02/11/proc-plm-regression-models-sas.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2019/02/11/proc-plm-regression-models-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And a few more worked examples of scoring data for logistic regression:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_logistic_examples20.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_logistic_examples20.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 16:23:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/610765#M29558</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-10T16:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting an event in a dataset from logit parameters (from another dataset)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/610766#M29559</link>
      <description>FYI - this isn't correct, you can use the STORE statement to score the model with a new data set. &lt;BR /&gt;&lt;BR /&gt; The store statement within the proc logit cannot be used too, since I don’t want to predict on the same dataset (and the prediction should be done without having access to the dataset used to estimate parameters).</description>
      <pubDate>Tue, 10 Dec 2019 16:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/610766#M29559</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-10T16:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting an event in a dataset from logit parameters (from another dataset)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/610886#M29569</link>
      <description>&lt;P&gt;Thanks. But the prediction should be done without having access to the dataset used to estimate parameters... so I don't see how I can used the proc logistic or glm. I'll read about the PLM procedure.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 02:00:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/610886#M29569</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2019-12-11T02:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting an event in a dataset from logit parameters (from another dataset)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/610888#M29570</link>
      <description>&lt;P&gt;Is it possible to use a csv file for parameters in the restore statement of proc PLM?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 02:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/610888#M29570</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2019-12-11T02:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting an event in a dataset from logit parameters (from another dataset)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/611095#M29580</link>
      <description>No idea, but if you have a CSV files why not just write a basic data step? The formula is pretty straightforward for logistic regression. If you can re-run the code to develop the model, the CODE option will create the data step for you. &lt;BR /&gt;&lt;BR /&gt;Here's an example of how you can replicate it from scratch if you have to. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/How-to-determine-logistic-regression-formula-from-estimates/td-p/120780" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/How-to-determine-logistic-regression-formula-from-estimates/td-p/120780&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rather than drive from the proc logistic output, you can drive it from the imported CSV file. though you may need to restructure the file to get it as needed.</description>
      <pubDate>Wed, 11 Dec 2019 18:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/611095#M29580</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-11T18:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting an event in a dataset from logit parameters (from another dataset)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/612052#M29602</link>
      <description>&lt;P&gt;If you are able to use SAS to fit the model and do the prediction for new data, then you can absolutely use PROC LOGISTIC for both. See the example titled "Scoring data sets" in the PROC LOGISTIC documentation. As shown there, you can fit the model in one PROC LOGISTIC step using the OUTMODEL= option to save a special data set containing the model. You can then predict (score) new data with that model in a subsequent PROC LOGISTIC step (even in a different SAS session) by specifying the save model data in the INMODEL= option and using the SCORE statement to score the new data. The example shows another way to do exactly the same thing using the STORE statement (instead of OUTMODEL=) and then PROC PLM (instead of the second PROC LOGISTIC step) to do the scoring. You can do either.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 15:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/612052#M29602</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-12-16T15:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting an event in a dataset from logit parameters (from another dataset)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/612057#M29603</link>
      <description>&lt;P&gt;I can't. The model is estimated in a secured lab, while the dataset for the prediction is on my laptop.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 15:59:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/612057#M29603</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2019-12-16T15:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting an event in a dataset from logit parameters (from another dataset)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/612066#M29604</link>
      <description>&lt;P&gt;... and the "dataset for the prediction" was generated by the OUTEST= option in PROC LOGISTIC? If so, can the lab rerun the model using either the OUTMODEL= option or the STORE statement instead? If they can provide the resulting file from either of those, then you can use PROC LOGISTIC to score new data as in the example I referred to.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 16:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/612066#M29604</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-12-16T16:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting an event in a dataset from logit parameters (from another dataset)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/612092#M29606</link>
      <description>You should be allowed to extract your code though, including the scoring code generated from a CODE statement? That's not any different than taking the parameter estimates out.</description>
      <pubDate>Mon, 16 Dec 2019 17:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicting-an-event-in-a-dataset-from-logit-parameters-from/m-p/612092#M29606</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-16T17:36:30Z</dc:date>
    </item>
  </channel>
</rss>

