Hi
How to use the Percentiles i.e. P25 from a variable in calculations Thanks in advance regards Abdulrahman ===================== 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 |
Freq <var> /for not /per 25 .
Email: [hidden email] Website: www.surveyresearch.weebly.com Skype: surveyresearcher1 Phone: (+33) (0) 2.33.45.91.47 -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Abdulrahman Yousef Elmubark Sent: 11 February 2012 16:22 To: [hidden email] Subject: Index Variable Hi How to use the Percentiles i.e. P25 from a variable in calculations Thanks in advance regards Abdulrahman ===================== 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 ===================== 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 |
Alternatively, check the CREATE command and its NTILES subcommand. Cheers!! Albert-Jan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Administrator
|
Albert-Jan meant RANK rather than CREATE.
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. --- "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" |
In reply to this post by abdelrhman elmubarak
Sorry I was not clear , I want to calculate (syntax) new variable Var2.
The value of Var2 is percentile 25 of Var1. thanks for those who respond ===================== 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 |
I am out of the office until February 15. For immediate assistance please contact Jessica Jaramillo ([hidden email]). Thank you. |
Administrator
|
In reply to this post by abdelrhman elmubarak
COMPUTE @ID@=$CASENUM.
RANK Myvar / NTILES(100). SORT CASES BY MyVar (D). COMPUTE p25=nmyvar LE 25 AND LAG(nmyvar) GT 25. SORT CASES BY p25 (D). IF $CASENUM=1 p25=myvar. IF p25=0 p25=LAG(p25). SORT CASES BY @ID@.
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. --- "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" |
In reply to this post by abdelrhman elmubarak
Thank you very much!!!!!
===================== 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 |
Free forum by Nabble | Edit this page |