<?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: Smote macro in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894803#M39792</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/442039"&gt;@V168&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How to download or how to check if I have?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you go to some internet web site where the SMOTE macro is available and download it to your computer?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2023 15:24:09 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-09-18T15:24:09Z</dc:date>
    <item>
      <title>Smote macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894795#M39786</link>
      <description>&lt;PRE&gt;761  %let smote_version=2.0;
762  %smote(data=Project1.Default_credit, /* Your dataset name */
     -
     180
WARNING: Apparent invocation of macro SMOTE not resolved.
ERROR 180-322: Statement is not valid or it is used out of proper order.
763         target=default_payment_next_month, /* Your target variable name */
764         nneighbors=5, /* Number of neighbors for SMOTE */
765         relfreq=1, /* Relative frequency of minority to majority class */
766         out=OversampledData);&lt;/PRE&gt;&lt;P&gt;I want help for use smote macro to handle imbalancing target data whie build the logistic regression model.&amp;nbsp; When I code this, it gives me error, some suggestions is to find out the path to the macro definition in your SAS environment and put in my code, but I don't know how. Can anyone give me help?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;761  %let smote_version=2.0;
762  %smote(data=Project1.Default_credit, /* Your dataset name */
     -
     180
WARNING: Apparent invocation of macro SMOTE not resolved.
ERROR 180-322: Statement is not valid or it is used out of proper order.
763         target=default_payment_next_month, /* Your target variable name */
764         nneighbors=5, /* Number of neighbors for SMOTE */
765         relfreq=1, /* Relative frequency of minority to majority class */
766         out=OversampledData);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894795#M39786</guid>
      <dc:creator>V168</dc:creator>
      <dc:date>2023-09-18T15:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Smote macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894797#M39787</link>
      <description>&lt;P&gt;Do you have the SAS code that defines the macro %smote?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will look like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro smote(data=);
  *more code here;
%mend smote;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If not, you'll have to find that code.&amp;nbsp; If you learned of this macro by reading a paper, sometimes people put the code as an attachment to the paper, or on github, or elsewhere.&amp;nbsp; Or if this is a macro commonly used within your company, you can ask your colleagues for help on compiling the macro to make it available.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894797#M39787</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-09-18T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Smote macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894798#M39788</link>
      <description>&lt;P&gt;Any macro must be defined and made available to your SAS program, before it can be used. You have not done this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably you need to download the macro to your computer first. Then&amp;nbsp;you need a %include statement to include the macro from the downloaded file before calling it (or you need to paste the macro code in your program before calling it)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894798#M39788</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-18T15:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Smote macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894800#M39789</link>
      <description>&lt;P&gt;%smote(data=Project1.Default_credit, /* Your dataset name */&lt;BR /&gt;target=default_payment_next_month, /* Your target variable name */&lt;BR /&gt;nneighbors=5, /* Number of neighbors for SMOTE */&lt;BR /&gt;relfreq=1, /* Relative frequency of minority to majority class */&lt;BR /&gt;out=OversampledData); /* Output dataset with oversampled data */&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894800#M39789</guid>
      <dc:creator>V168</dc:creator>
      <dc:date>2023-09-18T15:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Smote macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894801#M39790</link>
      <description>&lt;P&gt;How to download or how to check if I have?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894801#M39790</guid>
      <dc:creator>V168</dc:creator>
      <dc:date>2023-09-18T15:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Smote macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894802#M39791</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/442039"&gt;@V168&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;%smote(data=Project1.Default_credit, /* Your dataset name */&lt;BR /&gt;target=default_payment_next_month, /* Your target variable name */&lt;BR /&gt;nneighbors=5, /* Number of neighbors for SMOTE */&lt;BR /&gt;relfreq=1, /* Relative frequency of minority to majority class */&lt;BR /&gt;out=OversampledData); /* Output dataset with oversampled data */&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is not what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;and I are referring to. This code CALLS the macro. But this won't work unless you first DEFINE the macro to your program by %including (or pasting) the macro code into your program. You have not done this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894802#M39791</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-18T15:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Smote macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894803#M39792</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/442039"&gt;@V168&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How to download or how to check if I have?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you go to some internet web site where the SMOTE macro is available and download it to your computer?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894803#M39792</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-18T15:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Smote macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894804#M39793</link>
      <description>&lt;P&gt;The code you posted is an example of using the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably your best chance is to ask the person who wrote that code where you can find the code that creates the macro. I googled a bit, I don't see any papers that mention %smote.&amp;nbsp; So it's probably a macro created by one person, used internally within your company.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894804#M39793</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-09-18T15:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Smote macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894806#M39794</link>
      <description>&lt;P&gt;I will try, thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:22:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Smote-macro/m-p/894806#M39794</guid>
      <dc:creator>V168</dc:creator>
      <dc:date>2023-09-18T15:22:08Z</dc:date>
    </item>
  </channel>
</rss>

