hi - newbie question
I'm trying to generate a new variable with values, base on other variables
I'm working on a medical database and I have 2 variables (lab result and result value) as shown
I would like to generate a 3rd variable called "WBC"
And replace the value to 12.3 for ID#1.
What are the commands that I need use in order to do that?
Anyone can tip in?
Really appreciate your time in advance.
I'm trying to generate a new variable with values, base on other variables
I'm working on a medical database and I have 2 variables (lab result and result value) as shown
| ID | Lab test | Result |
| 1 | WBC | 12.3 |
| 1 | Blood culture | S. auerus |
I would like to generate a 3rd variable called "WBC"
And replace the value to 12.3 for ID#1.
| ID | Lab test | Result | WBC |
| 1 | WBC | 12.3 | 12.3 |
| 1 | Blood culture | S. auerus |
What are the commands that I need use in order to do that?
Anyone can tip in?
Really appreciate your time in advance.

Comment