+ Reply to Thread
Results 1 to 6 of 6

Thread: Why does INSET NORMALTEST display missing (a period) on my histogram?

  1. #1
    Points: 1,731, Level: 24
    Level completed: 31%, Points required for next Level: 69

    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Why does INSET NORMALTEST display missing (a period) on my histogram?



    I have a simple data set that I'm trying to make a histogram of, but using the INSET NORMALTEST command doesn't seem to work for some data. This is the code so far:

    Code: 
    DATA CLINIC;
       INPUT ID     $ 1-3
             GENDER $   4
             RACE   $   5
             HR       6-8
             SBP      9-11
             DBP     12-14
             N_PROC  15-16;
       AVE_BP = DBP + (SBP - DBP)/3;
    DATALINES;
    001MW08013008010
    002FW08811007205
    003MB05018810002
    004FB   10806801
    005MW06812208204
    006FB101   07404
    007FW07810406603
    008MW04811207006
    009FB07719011009
    010FB06616410610
    ;
    
    proc univariate data=clinic normal;
    var sbp;
    histogram sbp /normal;
    inset normaltest = "norm" (4.2) /
        font = 'Arial'
        pos = nw
        height = 5;
    This code works; however, when I use a different data set, it simply displays a period on the inset box next to "norm"

    What characteristics of the data would lead to this? I can't post the actual data since it's confidential and too large, but what causes this? I really need to figure this out because the graphs need to have that data on them.

  2. #2
    RotParaTon
    Points: 46,233, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardFrequent PosterCommunity AwardMaster Tagger
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,077
    Thanks
    211
    Thanked 1,607 Times in 1,377 Posts

    Re: Why does INSET NORMALTEST display missing (a period) on my histogram?

    I don't get that issue with the data posted (SAS 9.3)
    "His programming is malfunctioning. It begins! Get your weapons, he's going to become a killbot!!!" - bryangoodrich

  3. #3
    Points: 1,731, Level: 24
    Level completed: 31%, Points required for next Level: 69

    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Why does INSET NORMALTEST display missing (a period) on my histogram?

    I can't post the actual data since it's confidential and too large, but are there any characteristics of the data set that could cause this? Since I can't post the actual data (per my original post), the only way I have to troubleshoot this is to ask about characteristics that could cause it. I know that's general, but I don't know of any other way.

  4. #4
    Test of Gnomality
    Points: 8,336, Level: 61
    Level completed: 62%, Points required for next Level: 114
    hlsmith's Avatar
    Posts
    1,527
    Thanks
    99
    Thanked 256 Times in 249 Posts

    Re: Why does INSET NORMALTEST display missing (a period) on my histogram?

    pythonscript,

    Have you resolved this? So all of your output is correct except the "norm ."? Is this correct.

  5. #5
    Test of Gnomality
    Points: 8,336, Level: 61
    Level completed: 62%, Points required for next Level: 114
    hlsmith's Avatar
    Posts
    1,527
    Thanks
    99
    Thanked 256 Times in 249 Posts

    Re: Why does INSET NORMALTEST display missing (a period) on my histogram?

    Does the (4.2) represent the number of digits and decimals; and in your actual data the number is too large to display for some reason?

  6. #6
    Points: 1,731, Level: 24
    Level completed: 31%, Points required for next Level: 69

    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Why does INSET NORMALTEST display missing (a period) on my histogram?


    (4.2) does represent the number of digits and decimals, but changing this to larger values (e.g. 7.5) doesn't fix the problem, even if I adjust the size of the box.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats