<?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 Create the dummy data for one variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844689#M333939</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need help with creating the dummy data for lborres variable using the attached document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create the dummy data for&amp;nbsp;lborres below are the rules.&lt;/P&gt;&lt;P&gt;For lab tests with numeric result and character (TESTNAME in Test1):&lt;BR /&gt;1) Set non-missing lborres as blank.&lt;BR /&gt;2) Generate random lborres values between minimum and maximum values of unblinded ‘LBORRES’. Make sure the maximum length of LBORRES (dummy) in blinded data is same as in unblinded data.&lt;BR /&gt;3) If unblinded ‘LBORRES’ contains ‘&amp;lt;xxx’ or ‘&amp;gt;xxx’, randomly assign from 5% -10% blinded ‘LBORRES’ as ‘&amp;lt;xxx’ or ‘&amp;gt;xxx’.&lt;BR /&gt;4) If unblinded ‘LBORRES’ contains other special marks or text with no digits (if applicable), randomly assign from 5% -10% blinded ‘LBORRES’ as the special marks or text.&lt;BR /&gt;5) Concatenate blinded dataset for all the combinations of lab test.&lt;BR /&gt;&lt;BR /&gt;For lab tests with character result (TESTNAME equal Test2):&lt;BR /&gt;1) Set non-missing ‘LBORRES’ as blank.&lt;BR /&gt;2) Generate random ‘LBORRES’ values of ‘negative’ or ‘positive’. Make sure the maximum length of LBORRES (dummy) in blinded data is same as in unblinded data.&lt;/P&gt;&lt;P&gt;i didn't used rand function much, i tried some ways it didn't worked. Can you please help with this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavani.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 19:13:07 GMT</pubDate>
    <dc:creator>meab</dc:creator>
    <dc:date>2022-11-16T19:13:07Z</dc:date>
    <item>
      <title>Create the dummy data for one variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844689#M333939</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need help with creating the dummy data for lborres variable using the attached document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create the dummy data for&amp;nbsp;lborres below are the rules.&lt;/P&gt;&lt;P&gt;For lab tests with numeric result and character (TESTNAME in Test1):&lt;BR /&gt;1) Set non-missing lborres as blank.&lt;BR /&gt;2) Generate random lborres values between minimum and maximum values of unblinded ‘LBORRES’. Make sure the maximum length of LBORRES (dummy) in blinded data is same as in unblinded data.&lt;BR /&gt;3) If unblinded ‘LBORRES’ contains ‘&amp;lt;xxx’ or ‘&amp;gt;xxx’, randomly assign from 5% -10% blinded ‘LBORRES’ as ‘&amp;lt;xxx’ or ‘&amp;gt;xxx’.&lt;BR /&gt;4) If unblinded ‘LBORRES’ contains other special marks or text with no digits (if applicable), randomly assign from 5% -10% blinded ‘LBORRES’ as the special marks or text.&lt;BR /&gt;5) Concatenate blinded dataset for all the combinations of lab test.&lt;BR /&gt;&lt;BR /&gt;For lab tests with character result (TESTNAME equal Test2):&lt;BR /&gt;1) Set non-missing ‘LBORRES’ as blank.&lt;BR /&gt;2) Generate random ‘LBORRES’ values of ‘negative’ or ‘positive’. Make sure the maximum length of LBORRES (dummy) in blinded data is same as in unblinded data.&lt;/P&gt;&lt;P&gt;i didn't used rand function much, i tried some ways it didn't worked. Can you please help with this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavani.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 19:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844689#M333939</guid>
      <dc:creator>meab</dc:creator>
      <dc:date>2022-11-16T19:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create the dummy data for one variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844695#M333940</link>
      <description>&lt;P&gt;Please show us what you have tried so far.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, most of us will not accept data in Excel files, we need data presented as working SAS data step code, which you can type in yourself or follow &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And I don't understand any of the steps you have there, starting with this one:&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;1) Set non-missing lborres as blank."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Makes no sense to me. So please explain this one (and all the others as well) and show us the code you have tried. What does any of this have to do with dummy variables, which are mentioned in your title and some places in your text, but the instructions of the 5 steps don't seem to be creating dummy variables.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 20:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844695#M333940</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-16T20:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create the dummy data for one variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844710#M333947</link>
      <description>&lt;P&gt;added the code to attachment.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 20:47:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844710#M333947</guid>
      <dc:creator>meab</dc:creator>
      <dc:date>2022-11-16T20:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create the dummy data for one variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844712#M333948</link>
      <description>&lt;P&gt;need to replace the data is LBORRES field with dummy data. the rules for creating the dummy data in specified in my first post.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 20:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844712#M333948</guid>
      <dc:creator>meab</dc:creator>
      <dc:date>2022-11-16T20:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create the dummy data for one variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844718#M333952</link>
      <description>&lt;P&gt;As I (and many others) will not or cannot download attachments, please post the code in your reply by copying and pasting the code into the window that appears when you click on the "Little running man" icon. Also, please provide a portion of your data as I explained.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 22:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-the-dummy-data-for-one-variable/m-p/844718#M333952</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-16T22:11:41Z</dc:date>
    </item>
  </channel>
</rss>

