<?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: there are missing values in the TS variable in SAS News and Q&amp;A</title>
    <link>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/716316#M41</link>
    <description>&lt;P&gt;답변 감사합니다.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;말씀하신 대로 데이터 전처리 작업을 더 해야 하지 않을까 생각됩니다. 아직 panel procedure를 돌릴 정도로 데이타작업이 되지 않은거 같습니다.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2021 05:24:04 GMT</pubDate>
    <dc:creator>gyouinngm</dc:creator>
    <dc:date>2021-02-03T05:24:04Z</dc:date>
    <item>
      <title>there are missing values in the TS variable</title>
      <link>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/715715#M35</link>
      <description>&lt;P&gt;안녕하세요,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc panel procedure 시행하는 데, "there are missing values in the TS variable"가 뜨는데요, 아마 제 생각에 '.'값이 있어서 그런거 같은데요, 어떻게 해결할 수 있을까요?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;검색해보니 '(where=(TS~=.))'를 추가하라고 해서 추가하니까 변수 TS가 없다고 나옵니다.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;어떻게 해야할지 막막한데요, 혹시 데이터셋을 null 값이 나오지 않도록 새로 만들든지, '.'을 '0'으로 대체하면 될까요?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;감사합니다&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 16:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/715715#M35</guid>
      <dc:creator>gyouinngm</dc:creator>
      <dc:date>2021-11-09T16:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: there are missing values in the TS variable</title>
      <link>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/715929#M36</link>
      <description>&lt;P&gt;ID 문장에 있는 Time-series ID 변수에 missing 값이 있다는 것이고,&lt;/P&gt;
&lt;P&gt;정상 수행하려면 missing인 것을 빼고 하거나 아니면 missing을 채운 후에 수행해야 합니다.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;참고로 질문 올리실때는 사용하신 코드를 올려주시면 더 정확한 도움을 받으실 수 있습니다.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 01:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/715929#M36</guid>
      <dc:creator>Chulgyu1</dc:creator>
      <dc:date>2021-02-02T01:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: there are missing values in the TS variable</title>
      <link>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/715962#M37</link>
      <description>&lt;P&gt;답변 감사합니다. 아래는 제가 사용한 코드와 로드입니다.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;혹시 그럼 데이터셋에 있는 '.'을 '0'으로 바꾸면 분석이 가능할까요?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;분석코드&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc panel data=&lt;/SPAN&gt;&lt;A href="https://result.headset/" target="_blank" rel="noopener"&gt;RESULT.HEADSET&lt;/A&gt;&lt;SPAN&gt;3 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class c3 age_group c7_1 EDU c24_1 c2_1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model INCOUNT=c3 age_group c7_1 EDU c24_1 c2_1 / ranone;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;id pidwon year ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Log&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR: There are missing values in the TS variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: 오류가 발생하여 SAS 시스템은 현재 스텝의 실행을 중지합니다.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: 프로시저 PANEL 실행(총 프로세스 시간):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;실행 시간 22.11 초&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cpu 시간 19.45 초&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 06:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/715962#M37</guid>
      <dc:creator>gyouinngm</dc:creator>
      <dc:date>2021-02-02T06:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: there are missing values in the TS variable</title>
      <link>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/715982#M38</link>
      <description>&lt;P&gt;안녕하세요&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Miss_Values;
input ID$ var1 var2 var3;
datalines;
1 . 3 4 
2 2 0 .
3 . . 3
4 . 8 .
5 5 . .
;


proc stdize data=Miss_Values out=StdizeMethod_Var reponly missing=0;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="스크린샷 2021-02-02 오후 6.28.32.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54230i5808E133AC64FCA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="스크린샷 2021-02-02 오후 6.28.32.png" alt="스크린샷 2021-02-02 오후 6.28.32.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;위의 예시 코드와 같이 porc stdize의 reponly missing = 0 옵션을 사용하시면 될 것 같습니다.&lt;/P&gt;
&lt;P&gt;reponly missing = 0 옵션은 char 변수에서는 반응을 하지 않고 numeric변수에서만 반응합니다.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 09:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/715982#M38</guid>
      <dc:creator>AmeeKang</dc:creator>
      <dc:date>2021-02-02T09:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: there are missing values in the TS variable</title>
      <link>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/716041#M39</link>
      <description>&lt;P&gt;답변 감사합니다.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;주신 내용대로 PROC STDIZE 사용해서 '.'을 '0'으로 만든뒤 PROC PANEL 돌렸더니 "ERROR: The data set WORK._CLSS_ is not sorted in ascending sequence with respect to the time series ID. The current time period has YEAR=2010 and the previous time period has YEAR=2010 in cross section PIDWON=1000101."&lt;/P&gt;&lt;P&gt;혹시 아래와 같이 PIDWOND이랑 YEAR가 한번만 나오는 게 아니라 같은 연도가 계속 이어져서 에러가 나는게 아닐까 생각했습니다ㅠㅠ. (엑셀참조) 애초에 뭔가 PANEL 을 돌릴 데이터셋이 덜만들어졌나 하는 생각이 들었습니다. 패널분석이 첨이다 보니 너무 어렵네요.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PIDWON&amp;nbsp; &amp;nbsp; YEAR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2010&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2010&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2010&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2010&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/716041#M39</guid>
      <dc:creator>gyouinngm</dc:creator>
      <dc:date>2021-02-02T12:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: there are missing values in the TS variable</title>
      <link>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/716264#M40</link>
      <description>&lt;P&gt;Missing을 채우는 것에는 약간의 고민이 필요할 것 같습니다.&lt;/P&gt;
&lt;P&gt;TS 변수에 Missing이 있다는 것은 Year 변수에 Missing이 있다는 것인데, 패널 데이터의 기본이 Cross section을 시간에 따라 반복 측정한 것인데,&amp;nbsp;아마도 시간이 Missing이라는 것은 잘못된 데이터가 아닐까 하는 생각이 드네요.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;패널 데이터는 위에 언급한 대로 Cross section과 TS 변수의 조합에 대해서 Unique하게 데이터가 만들어져 있어야 합니다. 지금의 데이터는 동일한 시간(Year)에 여러 번 측정된 것 같은데, 데이터 전처리 작업을 하던가 아니면 TS 변수를 년월로 변경을 해서 분석을 해야할 것 같네요.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;그리고 마지막으로 PROC SORT를 이용하여 데이터를 PIDWON YEAR에 대해서 정렬할 후에 PROC PANEL을 실행해야합니다.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=data-set-name; by pidwon year; run;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 23:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/716264#M40</guid>
      <dc:creator>Chulgyu1</dc:creator>
      <dc:date>2021-02-02T23:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: there are missing values in the TS variable</title>
      <link>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/716316#M41</link>
      <description>&lt;P&gt;답변 감사합니다.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;말씀하신 대로 데이터 전처리 작업을 더 해야 하지 않을까 생각됩니다. 아직 panel procedure를 돌릴 정도로 데이타작업이 되지 않은거 같습니다.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 05:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-News-and-Q-A/there-are-missing-values-in-the-TS-variable/m-p/716316#M41</guid>
      <dc:creator>gyouinngm</dc:creator>
      <dc:date>2021-02-03T05:24:04Z</dc:date>
    </item>
  </channel>
</rss>

