Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: numlabel gives syntax error on one specific dataset


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: RE: numlabel gives syntax error on one specific dataset
Date   Wed, 23 Feb 2011 15:03:29 +0000

I said that Graham could send a copy to me. I confirm that I get his error message with his data. Looking at the labels there are some unprintable characters in his labels. So, I think he's right. It's a problem with his data. 

The error message, by the way, emanates from inside -matalabel-, but tracing it didn't seem the major part of valour. 

ASCII-fluent experts can perhaps ascertain [good word, isn't it] what may be alien from the results of -hexdump, tabulate-. 

Line-end characters                        Line length (tab=1)
    \r\n         (Windows)              2      minimum                       14
    \r by itself (Mac)                  0      maximum                1,274,613
    \n by itself (Unix)                 0
  Space/separator characters                 Number of lines                  3
    [blank]                            23      EOL at EOF?                   no
    [tab]                               0
    [comma] (,)                         0    Length of first 5 lines
  Control characters                           Line 1                 1,274,613
    binary 0                      117,383      Line 2                        22
    CTL excl. \r, \n, \t           55,949      Line 3                        14
    DEL                                 0      Line 4                         .
    Extended (128-159,255)             15      Line 5                         .
  ASCII printable
    A-Z                           347,961
    a-z                            42,279    File format                 BINARY
    0-9                           710,976
    Special (!@#$ etc.)                44
    Extended (160-254)                 17
                          ---------------
  Total                         1,274,651

  Observed were:
     \0 ^A ^B ^C ^D ^G \n ^L \r ^O ^Q ^U ^W ^X ^Y 29 blank ! % ( ) + - . / 0
     1 2 3 4 5 6 7 8 9 : < = ? A B C D E F G H I J K L M N O P Q R S T U V W
     X Y Z [ _ ` a b c d e g h i k l m n o p q r s t u v w x y ~ E^D E^K E^L
     E^S 157 158 ¤ ¯ ´ Ê Õ Ø Ý â ñ ù û ü 255

  Tabulation (character not listed if unobserved):
     Dec Hex  Char        Frequency
     ------------------------------
     000  00  \0            117,383
     001  01  ^A             22,511
     002  02  ^B             22,844
     003  03  ^C              6,261
     004  04  ^D              4,319
     007  07  ^G                  1
     010  0a  \n                  2
     012  0c  ^L                  1
     013  0d  \r                  2
     015  0f  ^O                  3
     017  11  ^Q                  3
     021  15  ^U                  2
     023  17  ^W                  1
     024  18  ^X                  1
     025  19  ^Y                  1
     029  1d  29                  1
     032  20  blank              23
     033  21  !                   1
     037  25  %                  16
     040  28  (                   1
     041  29  )                   1
     043  2b  +                   1
     045  2d  -                   1
     046  2e  .                  12
     047  2f  /                   1
     048  30  0              47,479
     049  31  1              90,839
     050  32  2              82,546
     051  33  3              73,833
     052  34  4              82,575
     053  35  5              64,831
     054  36  6              64,840
     055  37  7              64,784
     056  38  8              69,947
     057  39  9              69,302
     058  3a  :                   3
     060  3c  <                   1
     061  3d  =                   1
     063  3f  ?                   1
     065  41  A              32,499
     066  42  B              32,704
     067  43  C              27,016
     068  44  D              26,995
     069  45  E              26,561
     070  46  F              26,830
     071  47  G              11,105
     072  48  H              11,118
     073  49  I                   5
     074  4a  J              10,874
     075  4b  K              11,021
     076  4c  L              11,024
     077  4d  M              10,793
     078  4e  N              10,993
     079  4f  O                   3
     080  50  P              10,939
     081  51  Q              10,846
     082  52  R              10,801
     083  53  S                   1
     084  54  T              11,092
     085  55  U              11,112
     086  56  V              10,856
     087  57  W              10,839
     088  58  X              10,901
     089  59  Y              11,029
     090  5a  Z                   4
     091  5b  [                   1
     095  5f  _                   1
     096  60  `                   1
     097  61  a                  12
     098  62  b                   4
     099  63  c                   4
     100  64  d                  10
     101  65  e              42,106
     103  67  g                  11
     104  68  h                   5
     105  69  i                  14
     107  6b  k                   1
     108  6c  l                   9
     109  6d  m                   3
     110  6e  n                  21
     111  6f  o                  11
     112  70  p                   8
     113  71  q                   2
     114  72  r                  12
     115  73  s                  16
     116  74  t                  12
     117  75  u                   4
     118  76  v                   4
     119  77  w                   4
     120  78  x                   2
     121  79  y                   4
     126  7e  ~                   1
     132  84  E^D                 2
     139  8b  E^K                 1
     140  8c  E^L                 1
     147  93  E^S                 1
     157  9d  157                 1
     158  9e  158                 1
     164  a4  ¤                   1
     175  af  ¯                   1
     180  b4  ´                   1
     202  ca  Ê                   1
     213  d5  Õ                   3
     216  d8  Ø                   1
     221  dd  Ý                   2
     226  e2  â                   3
     241  f1  ñ                   1
     249  f9  ù                   1
     251  fb  û                   1
     252  fc  ü                   1
     255  ff  255                 8
     ------------------------------
     Total                1,274,651

Nick 
[email protected] 

Maarten buis

--- On Wed, 23/2/11, Graham Wright wrote:
> I can send you (or someone) this trimmed down version
> of the data set if someone is willing to look at it. 

I think the best place to sent it to is Stata's 
Techsupport. <http://www.stata.com/support/tech-support/>
We are just users. It is not wrong to ask this question
here: We may have run into this problem before and found a 
solution. But you are more likely to get an answer to this
type of question from StataCorp itself.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index