Recent content by kungfupanda

  1. K

    changing the reference variable value in class statement

    Hi, I am trying to run an analysis with the variable "histgr" (for histology group) and the values for histgr are 1, 2, 3, 4 and 5. How can I change the reference variable value from 5 (the last value and default reference) to 3 (my desired reference variable value)? Here is the code I have...
  2. K

    subsetting data with criteria involving multiple variables/combinations of variables

    Hi, I am trying to create a subset of data of “high intermediate risk” group of entries as defined by a criteria based on age and number of risk factors. It is: Age over 70 plus at least 1 risk factor Age 50-70 plus at least 2 risk factors Age under 50 plus all three risk factors The...
  3. K

    how to select for multiple codes for a given variable?

    Hi, One of my variables, "histology" has about 200 unique codes. I want to create a dataset looking at just 10 of them that are "carcinomas", but I only know the simple command of deleting each one at a time. Rather than perform this step 190 times, I am trying to figure out how I may select...
  4. K

    how to use characters when calling values for a variable?

    Hi, I have a database with a variable "stage" with the following values: 1, 2, 1A, 1B, 2A, 2B. I am trying to trim my data by finding all the people where the variable "stage" = 1B and delete them from the dataset. I tried using this code: data = allpeople_no1B; set...