+ Reply to Thread
Results 1 to 2 of 2

Thread: Equation

  1. #1
    Points: 1,500, Level: 21
    Level completed: 50%, Points required for next Level: 100

    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Equation



    Dear members,
    I have the following equation I want to wite it in SAS, and I am having some trouble, can anybody help:

    The risk can be calculated as 1-0.95012exp(ΣßX - 26.1931) where ß is the regression coefficient and X is the level for each risk factor, which are the following.

    Variable (Beta)
    Log of Age (2.32888)
    Log of Total Cholesterol (1.20904)
    Log of HDL Cholesterol (-0.70833)
    Log of SBP if not treated (2.76157)
    Log of SBP if treated (2.82263)
    Smoking (0.52873)
    Diabetes (0.69154)

    Thank you in advance,
    Hani

  2. #2
    Points: 2,626, Level: 31
    Level completed: 18%, Points required for next Level: 124

    Location
    Dallas, TX
    Posts
    311
    Thanks
    12
    Thanked 94 Times in 93 Posts

    Re: Equation


    What is the problem? Maybe I'm missing something. You can simply write this equation in a data step. Say your data is in file orig:

    Code: 
    data test;
    set orig;
    1-0.95012exp(2.32888*Log(age)+1.20904*log(total)+-0.70833*log(hdl)+...+.69154*log(diabetes)- 26.1931);
    run;

+ 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