t-Value Extraction

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

t-Value Extraction

Stan Gorodenski
I tried first sending this with the syntax as a jpg file because
sometimes things get jumbled up in an email message, but it was rejected
because SPSSX-L is set up to reject jpg attachments. So, here it is in
the email message. I hope it is readable in your email message.

Is there a better way to extract a t-value for a given n-df (n is total
obs, df is degrees of freedom) in SPSSX than the cumberson and really
long time to execute method I have developed shown below? I looked in
the syntax manual and could not find an extraction function.
Stan
(p.s., I didn't type in the 181 t-values. I went on the internet and
copied them into an spss program to write them to a text file in the
order given with commas and all)


DEFINE TVALUES (ARG1 = !TOKENS(1)
               / ARG2 = !TOKENS(1))
!DO !I = !ARG1 !TO !ARG2
   COMPUTE !CONCAT(TVALUE,!i) = 2.58.
   DO REPEAT
     Y =  2.8454, 2.8314, 2.8188, 2.8073, 2.7970, 2.7874, 2.7787,
2.7707, 2.7633, 2.7564, 2.7500, 2.7440, 2.7385, 2.7333, 2.7284,
          2.7238, 2.7195, 2.7154, 2.7115, 2.7079, 2.7045, 2.7012,
2.6981, 2.6951, 2.6923, 2.6896, 2.6870, 2.6846, 2.6822, 2.6800,
          2.6778, 2.6757, 2.6737, 2.6718, 2.6700, 2.6682, 2.6665,
2.6649, 2.6633, 2.6618, 2.6603, 2.6589, 2.6575, 2.6561, 2.6549,
          2.6536, 2.6524, 2.6512, 2.6501, 2.6490, 2.6479, 2.6468,
2.6459, 2.6449, 2.6439, 2.6430, 2.6421, 2.6412, 2.6404, 2.6395,
          2.6387, 2.6379, 2.6371, 2.6364, 2.6356, 2.6349, 2.6342,
2.6335, 2.6328, 2.6322, 2.6316, 2.6309, 2.6303, 2.6297, 2.6292,
          2.6286, 2.6280, 2.6275, 2.6269, 2.6264, 2.6259, 2.6254,
2.6249, 2.6244, 2.6240, 2.6235, 2.6230, 2.6225, 2.6221, 2.6217,
          2.6212, 2.6208, 2.6204, 2.6200, 2.6196, 2.6192, 2.6189,
2.6185, 2.6181, 2.6178, 2.6174, 2.6171, 2.6168, 2.6164, 2.6161,
          2.6158, 2.6154, 2.6151, 2.6148, 2.6145, 2.6142, 2.6139,
2.6136, 2.6133, 2.6130, 2.6127, 2.6125, 2.6122, 2.6119, 2.6117,
          2.6114, 2.6112, 2.6109, 2.6106, 2.6104, 2.6102, 2.6099,
2.6097, 2.6094, 2.6092, 2.6090, 2.6088, 2.6085, 2.6083, 2.6081,
          2.6079, 2.6077, 2.6075, 2.6073, 2.6071, 2.6069, 2.6067,
2.6065, 2.6063, 2.6062, 2.6060, 2.6058, 2.6056, 2.6054, 2.6052,
          2.6051, 2.6049, 2.6047, 2.6046, 2.6044, 2.6042, 2.6041,
2.6039, 2.6037, 2.6036, 2.6034, 2.6033, 2.6031, 2.6030, 2.6028,
          2.6027, 2.6025, 2.6024, 2.6022, 2.6021, 2.6019, 2.6018,
2.6017, 2.6015, 2.6014, 2.6013, 2.6012, 2.6010, 2.6009, 2.6008, 2.6007 /
     X =  20,  21,  22,  23,  24,  25,  26,  27,  28,  29,  30,  31,  
32,  33,  34,  35,  36,  37,  38,  39,  40,  41,  42,  43,  44,
          45,  46,  47,  48,  49,  50,  51,  52,  53,  54,  55,  56,  
57,  58,  59,  60,  61,  62,  63,  64,  65,  66,  67,  68,  69,
          70,  71,  72,  73,  74,  75,  76,  77,  78,  79,  80,  81,  
82,  83,  84,  85,  86,  87,  88,  89,  90,  91,  92,  93,  94,
          95,  96,  97,  98,  99, 100, 101, 102, 103, 104, 105, 106,
107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
          120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
          145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156,
157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
          170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
          195, 196, 197, 198, 199, 200  .
     IF !CONCAT(n_df,!i) = X   !CONCAT(TVALUE,!i) = Y.
   END REPEAT.
!DOEND
!ENDDEFINE.
TVALUES ARG1=1 ARG2=1530.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: t-Value Extraction

Jon Peck
The transformation functions in Statistics include   Pdf.T, Cdf.T, Idf.T, and Npdf.T.  The latest version of MATRIX also has TCDF.

On Sat, Aug 18, 2018 at 12:33 PM Stan Gorodenski <[hidden email]> wrote:
I tried first sending this with the syntax as a jpg file because
sometimes things get jumbled up in an email message, but it was rejected
because SPSSX-L is set up to reject jpg attachments. So, here it is in
the email message. I hope it is readable in your email message.

Is there a better way to extract a t-value for a given n-df (n is total
obs, df is degrees of freedom) in SPSSX than the cumberson and really
long time to execute method I have developed shown below? I looked in
the syntax manual and could not find an extraction function.
Stan
(p.s., I didn't type in the 181 t-values. I went on the internet and
copied them into an spss program to write them to a text file in the
order given with commas and all)


DEFINE TVALUES (ARG1 = !TOKENS(1)
               / ARG2 = !TOKENS(1))
!DO !I = !ARG1 !TO !ARG2
   COMPUTE !CONCAT(TVALUE,!i) = 2.58.
   DO REPEAT
     Y =  2.8454, 2.8314, 2.8188, 2.8073, 2.7970, 2.7874, 2.7787,
2.7707, 2.7633, 2.7564, 2.7500, 2.7440, 2.7385, 2.7333, 2.7284,
          2.7238, 2.7195, 2.7154, 2.7115, 2.7079, 2.7045, 2.7012,
2.6981, 2.6951, 2.6923, 2.6896, 2.6870, 2.6846, 2.6822, 2.6800,
          2.6778, 2.6757, 2.6737, 2.6718, 2.6700, 2.6682, 2.6665,
2.6649, 2.6633, 2.6618, 2.6603, 2.6589, 2.6575, 2.6561, 2.6549,
          2.6536, 2.6524, 2.6512, 2.6501, 2.6490, 2.6479, 2.6468,
2.6459, 2.6449, 2.6439, 2.6430, 2.6421, 2.6412, 2.6404, 2.6395,
          2.6387, 2.6379, 2.6371, 2.6364, 2.6356, 2.6349, 2.6342,
2.6335, 2.6328, 2.6322, 2.6316, 2.6309, 2.6303, 2.6297, 2.6292,
          2.6286, 2.6280, 2.6275, 2.6269, 2.6264, 2.6259, 2.6254,
2.6249, 2.6244, 2.6240, 2.6235, 2.6230, 2.6225, 2.6221, 2.6217,
          2.6212, 2.6208, 2.6204, 2.6200, 2.6196, 2.6192, 2.6189,
2.6185, 2.6181, 2.6178, 2.6174, 2.6171, 2.6168, 2.6164, 2.6161,
          2.6158, 2.6154, 2.6151, 2.6148, 2.6145, 2.6142, 2.6139,
2.6136, 2.6133, 2.6130, 2.6127, 2.6125, 2.6122, 2.6119, 2.6117,
          2.6114, 2.6112, 2.6109, 2.6106, 2.6104, 2.6102, 2.6099,
2.6097, 2.6094, 2.6092, 2.6090, 2.6088, 2.6085, 2.6083, 2.6081,
          2.6079, 2.6077, 2.6075, 2.6073, 2.6071, 2.6069, 2.6067,
2.6065, 2.6063, 2.6062, 2.6060, 2.6058, 2.6056, 2.6054, 2.6052,
          2.6051, 2.6049, 2.6047, 2.6046, 2.6044, 2.6042, 2.6041,
2.6039, 2.6037, 2.6036, 2.6034, 2.6033, 2.6031, 2.6030, 2.6028,
          2.6027, 2.6025, 2.6024, 2.6022, 2.6021, 2.6019, 2.6018,
2.6017, 2.6015, 2.6014, 2.6013, 2.6012, 2.6010, 2.6009, 2.6008, 2.6007 /
     X =  20,  21,  22,  23,  24,  25,  26,  27,  28,  29,  30,  31, 
32,  33,  34,  35,  36,  37,  38,  39,  40,  41,  42,  43,  44,
          45,  46,  47,  48,  49,  50,  51,  52,  53,  54,  55,  56, 
57,  58,  59,  60,  61,  62,  63,  64,  65,  66,  67,  68,  69,
          70,  71,  72,  73,  74,  75,  76,  77,  78,  79,  80,  81, 
82,  83,  84,  85,  86,  87,  88,  89,  90,  91,  92,  93,  94,
          95,  96,  97,  98,  99, 100, 101, 102, 103, 104, 105, 106,
107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
          120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
          145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156,
157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
          170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
          195, 196, 197, 198, 199, 200  .
     IF !CONCAT(n_df,!i) = X   !CONCAT(TVALUE,!i) = Y.
   END REPEAT.
!DOEND
!ENDDEFINE.
TVALUES ARG1=1 ARG2=1530.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD