<?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: Generating List of T-Scores for Each Observation in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496457#M6236</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/234051"&gt;@jrossgilbert&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even though it is not a typical solution, you should mark your last contribution to this topic as the solution.&amp;nbsp; That way, folks looking for unsolved topics won't spend unnecessary time.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Sep 2018 04:31:36 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2018-09-18T04:31:36Z</dc:date>
    <item>
      <title>Generating List of T-Scores for Each Observation</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496394#M6231</link>
      <description>&lt;P&gt;Dear Community:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective is to generate a list of T-scores, by observation, for a simple data set of variable "X" observations (n=13). The issue is that I cannot find a command to create a table of generated T-scores for each individual observation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For greater clarity, I want to write SAS code to calculate a T score for each observation using the z score and that formula is&amp;nbsp;T&amp;nbsp;= (Z&amp;nbsp;x 10) + 50.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Build raw data table for 13 provided observations;&lt;BR /&gt;DATA HW2;&lt;BR /&gt;INPUT X;&lt;BR /&gt;DATALINES;&lt;BR /&gt;43&lt;BR /&gt;42&lt;BR /&gt;40&lt;BR /&gt;39&lt;BR /&gt;38&lt;BR /&gt;37&lt;BR /&gt;36&lt;BR /&gt;24&lt;BR /&gt;28&lt;BR /&gt;22&lt;BR /&gt;18&lt;BR /&gt;16&lt;BR /&gt;10&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I transformed the X observations into z-scores and generated a new dataset "zHW2" (see below).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*Transform the X scores into z-scores;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PROC STANDARD data=HW2 Mean=0 STD=1 Out=zHW2;&lt;/P&gt;&lt;P&gt;VAR X;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I would like to compute the T scores and generate a revised dataset labeled "tHW2."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496394#M6231</guid>
      <dc:creator>jrossgilbert</dc:creator>
      <dc:date>2018-09-18T12:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Generating List of T-Scores for Each Observation</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496414#M6232</link>
      <description>&lt;P&gt;According to &lt;A href="https://stattrek.com/statistics/dictionary.aspx?definition=T_score" target="_self"&gt;https://stattrek.com/statistics/dictionary.aspx?definition=T_score&lt;/A&gt;, there are more than one definition of t-score.&amp;nbsp; Which is the one you intend?&amp;nbsp; If it is the one attributed to psychometrics, just do a OUT= to generate the z-score and calculate t-score from that.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 21:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496414#M6232</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-09-17T21:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generating List of T-Scores for Each Observation</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496416#M6233</link>
      <description>&lt;P&gt;PROC TTEST does not produce results for individual observations. It produces hypothesis tests about the mean and the variance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a "T-score", you need to define it clearly for us, as I agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;, it is not clear what you are asking for. If it is what I am thinking, you could obtain this via data step coding along with the output (mean and standard deviation) from PROC MEANS/PROC SUMMARY.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 22:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496416#M6233</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-09-17T22:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generating List of T-Scores for Each Observation</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496450#M6235</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt; and Paige...both responses make sense. The statistical procedure fact, which I inadvertently overlooked while immersed in learning codes, is that the t-test doesn't derive T scores by individual observation. Thus, the procedural inability to create a revised output file. My apologies and thank you again for clarifying my understanding.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 04:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496450#M6235</guid>
      <dc:creator>jrossgilbert</dc:creator>
      <dc:date>2018-09-18T04:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generating List of T-Scores for Each Observation</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496457#M6236</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/234051"&gt;@jrossgilbert&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even though it is not a typical solution, you should mark your last contribution to this topic as the solution.&amp;nbsp; That way, folks looking for unsolved topics won't spend unnecessary time.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 04:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496457#M6236</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-09-18T04:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Generating List of T-Scores for Each Observation</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496506#M6237</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/234051"&gt;@jrossgilbert&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried &lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p1rny3j0vlycnln1sninajhcoqat.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;PROC STANDARD&lt;/A&gt; or &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.3&amp;amp;docsetTarget=statug_stdize_overview.htm&amp;amp;locale=en" target="_blank"&gt;PROC STDIZE&lt;/A&gt;? These procedures can compute a variety of scores for individual observations, for example the psychometric t-scores that have been mentioned:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc standard data=hw2 mean=50 std=10 out=thw2;
run;

proc stdize data=hw2 add=50 mult=10 out=thw2a oprefix sprefix=t_;
var x;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Sep 2018 09:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496506#M6237</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-09-18T09:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Generating List of T-Scores for Each Observation</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496533#M6238</link>
      <description>&lt;P&gt;For greater clarity, I want to write SAS code to calculate a T score for each observation using the z score and that formula is&amp;nbsp;&lt;/P&gt;&lt;P&gt;T&amp;nbsp;= (Z&amp;nbsp;x 10) + 50.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I transformed the X observations into z-scores and generated a new dataset "zHW2" (see below).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*Transform the X scores into z-scores;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PROC STANDARD data=HW2 Mean=0 STD=1 Out=zHW2;&lt;/P&gt;&lt;P&gt;VAR X;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My last objective is to generate the computed T scores, by observation, in a new data set labeled "tHW2."&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496533#M6238</guid>
      <dc:creator>jrossgilbert</dc:creator>
      <dc:date>2018-09-18T12:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Generating List of T-Scores for Each Observation</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496540#M6239</link>
      <description>&lt;P&gt;Thanks for the clarification. As shown in my previous post, you can compute the T scores directly from dataset HW2 without an intermediate step. But it's not too difficult to use zHW2 either:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tHW2;
set zHW2;
T=10*X+50;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Sep 2018 12:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Generating-List-of-T-Scores-for-Each-Observation/m-p/496540#M6239</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-09-18T12:52:27Z</dc:date>
    </item>
  </channel>
</rss>

