Computing percentage between 2 variables

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

Computing percentage between 2 variables

kim
Hi everyone;
I am hoping that someone can help me.  How do I compute the percentage between 2 different variables and make this a new variable? I have the following 2 variables:

r.request
r.pursued

I need to know what percentage of requests were actually pursued. I would want to name this new variable 'percent.pursued'

Thanks in advance! This doctoral student is frustrated!
Reply | Threaded
Open this post in threaded view
|

Re: Computing percentage between 2 variables

Bruce Weaver
Administrator
Rather than give you a fish, I'll encourage you to try fishing for yourself.  Look up the COMPUTE command in the fine manual, and study some of the examples you'll find there.  A Google search in <SPSS COMPUTE> might also yield something useful.

HTH.


kim wrote
Hi everyone;
I am hoping that someone can help me.  How do I compute the percentage between 2 different variables and make this a new variable? I have the following 2 variables:

r.request
r.pursued

I need to know what percentage of requests were actually pursued. I would want to name this new variable 'percent.pursued'

Thanks in advance! This doctoral student is frustrated!
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
kim
Reply | Threaded
Open this post in threaded view
|

Re: Computing percentage between 2 variables

kim
Bruce Weaver wrote
Rather than give you a fish, I'll encourage you to try fishing for yourself.  Look up the COMPUTE command in the fine manual, and study some of the examples you'll find there.  A Google search in <SPSS COMPUTE> might also yield something useful.


Thanks for your response. With my fishing - I  decided on the following syntax - however, perhaps, I have the decimal in the wrong place on the 100? Some of my answers are 300%??

COMPUTE percent.pursued=r.request / r.pursued * 100.
EXECUTE.

HTH.


kim wrote
Hi everyone;
I am hoping that someone can help me.  How do I compute the percentage between 2 different variables and make this a new variable? I have the following 2 variables:

r.request
r.pursued

I need to know what percentage of requests were actually pursued. I would want to name this new variable 'percent.pursued'

Thanks in advance! This doctoral student is frustrated!
kim
Reply | Threaded
Open this post in threaded view
|

Re: Computing percentage between 2 variables

kim
Never mind! Stupid mistake. I got it. Thanks.