grouping variable

  1. S

    How to select categories (based on multiple variables) for the x-axis of a chart

    For example: Lets say I have the following variables: Variable 1: "Groups". Involves two groups of patients. 1= patients with infection, 2= patients without infection Variable 2: "Mortality". Subdivides patients with infection in two subgroups. 1= patients who died from infection, 2= patients...
  2. G

    75/25 random split on dichotomous variable needed

    I have a dichotomous target variable (1's/0's). I want to test a predictive model on 250 randomly selected 1's and 750 randomly selected 0's of that target variable. How do I create this complex grouping variable that combines information from a target variable, the need for random selection...