<?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: what is the meaning of in=inlab in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/what-is-the-meaning-of-in-inlab/m-p/194154#M13144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 21:59:51 GMT</pubDate>
    <dc:creator>cecily</dc:creator>
    <dc:date>2015-08-06T21:59:51Z</dc:date>
    <item>
      <title>what is the meaning of in=inlab</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/what-is-the-meaning-of-in-inlab/m-p/194152#M13142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data labs;&lt;/P&gt;&lt;P&gt;input subject $ lab_test $ lab_date lab_result;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;101 HGB 999 1.0&lt;/P&gt;&lt;P&gt;101 HGB 1000 1.1&lt;/P&gt;&lt;P&gt;101 HGB 1011 1.2&lt;/P&gt;&lt;P&gt;101 HGB 1029 1.3&lt;/P&gt;&lt;P&gt;101 HGB 1030 1.4&lt;/P&gt;&lt;P&gt;101 HGB 1031 1.5&lt;/P&gt;&lt;P&gt;101 HGB 1058 1.6&lt;/P&gt;&lt;P&gt;101 HGB 1064 1.7&lt;/P&gt;&lt;P&gt;101 HGB 1725 1.8&lt;/P&gt;&lt;P&gt;101 HGB 1735 1.9&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;**** INPUT SAMPLE DOSING DATE.&lt;/P&gt;&lt;P&gt;**** SUBJECT = PATIENT NUMBER, DOSE_DATE = DATE OF DOSING.;&lt;/P&gt;&lt;P&gt;data dosing;&lt;/P&gt;&lt;P&gt;input subject $ dose_date;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;101 1001&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;**** SORT LAB DATA FOR MERGE WITH DOSING;&lt;/P&gt;&lt;P&gt;proc sort&lt;/P&gt;&lt;P&gt;data = labs;&lt;/P&gt;&lt;P&gt;by subject;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;**** SORT DOSING DATA FOR MERGE WITH LABS.;&lt;/P&gt;&lt;P&gt;proc sort&lt;/P&gt;&lt;P&gt;data = dosing;&lt;/P&gt;&lt;P&gt;by subject;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;**** MERGE LAB DATA WITH DOSING DATE. CALCULATE STUDY DAY AND&lt;/P&gt;&lt;P&gt;**** DEFINE VISIT WINDOWS BASED ON STUDY DAY.;&lt;/P&gt;&lt;P&gt;/*labdate=event date&amp;nbsp;&amp;nbsp; dosedate=intervation */&lt;/P&gt;&lt;P&gt;data labs_new1;&lt;/P&gt;&lt;P&gt;merge labs(in = inlab)&lt;/P&gt;&lt;P&gt;dosing(keep = subject dose_date);&lt;/P&gt;&lt;P&gt;by subject;&lt;/P&gt;&lt;P&gt;**** KEEP RECORD IF IN LAB AND RESULT IS NOT MISSING.;&lt;/P&gt;&lt;P&gt;if inlab and lab_result ne .;&lt;/P&gt;&lt;P&gt;**** CALCULATE STUDY DAY.;&lt;/P&gt;&lt;P&gt;if lab_date &amp;lt; dose_date then&lt;/P&gt;&lt;P&gt;study_day = lab_date - dose_date;&lt;/P&gt;&lt;P&gt;else if lab_date &amp;gt;= dose_date then&lt;/P&gt;&lt;P&gt;study_day = lab_date - dose_date + 1;&lt;/P&gt;&lt;P&gt;**** SET VISIT WINDOWS AND TARGET DAY AS THE MIDDLE OF THE&lt;/P&gt;&lt;P&gt;**** WINDOW.;&lt;/P&gt;&lt;P&gt;if . &amp;lt; study_day &amp;lt; 0 then&lt;/P&gt;&lt;P&gt;target = 0;&lt;/P&gt;&lt;P&gt;else if 25 &amp;lt;= study_day &amp;lt;=35 then&lt;/P&gt;&lt;P&gt;target = 30;&lt;/P&gt;&lt;P&gt;else if 55 &amp;lt;= study_day &amp;lt;= 65 then&lt;/P&gt;&lt;P&gt;target = 60;&lt;/P&gt;&lt;P&gt;else if 350 &amp;lt;= study_day &amp;lt;= 380 then&lt;/P&gt;&lt;P&gt;target = 365;&lt;/P&gt;&lt;P&gt;else if 715 &amp;lt;= study_day &amp;lt;= 745 then&lt;/P&gt;&lt;P&gt;target = 730;&lt;/P&gt;&lt;P&gt;**** CALCULATE OBSERVATION DISTANCE FROM TARGET AND&lt;/P&gt;&lt;P&gt;**** ABSOLUTE VALUE OF THAT DIFFERENCE.;&lt;/P&gt;&lt;P&gt;difference = study_day - target;&lt;/P&gt;&lt;P&gt;absdifference = abs(difference);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is what is the meaning of in=inlab?&lt;/P&gt;&lt;P&gt;since&amp;nbsp; I didnot find inlab variable in the labs data set....so why here there exists in=inlab?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 21:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/what-is-the-meaning-of-in-inlab/m-p/194152#M13142</guid>
      <dc:creator>cecily</dc:creator>
      <dc:date>2015-08-06T21:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: what is the meaning of in=inlab</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/what-is-the-meaning-of-in-inlab/m-p/194153#M13143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The option IN= creates a temporary variable that is set to 1 when the values of that record are from the specified data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The temporary variables can then be referenced for any conditional processing based on data set membership.&lt;/P&gt;&lt;P&gt;The variable is NOT added to any output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 21:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/what-is-the-meaning-of-in-inlab/m-p/194153#M13143</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-08-06T21:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: what is the meaning of in=inlab</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/what-is-the-meaning-of-in-inlab/m-p/194154#M13144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 21:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/what-is-the-meaning-of-in-inlab/m-p/194154#M13144</guid>
      <dc:creator>cecily</dc:creator>
      <dc:date>2015-08-06T21:59:51Z</dc:date>
    </item>
  </channel>
</rss>

