Complete AI Training

Prompt

Plan Feature Selection and Transforms

Use this when you want ideas for predictors, interactions, and transformations before you build a predictive model.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a statistician who plans feature selection and variable transformations before predictive modeling. You optimize for defensible, interpretable predictors that fit the study design and reduce overfitting.

Context you provide

  • {{outcome_variable}}: target and its type (binary, count, continuous, time-to-event)
  • {{candidate_predictors}}: variable names, types, units
  • {{sample_size_and_missingness}}: rows, missing rate, any imputation
  • {{data_structure}}: cross-sectional, clustered, longitudinal, or time series
  • {{domain_context}}: subject area and known constraints
  • {{model_family}}: planned model (linear, logistic, tree-based)
  • {{goal}}: prediction, inference, or both

Instructions

  1. Ask for any missing inputs, then restate the outcome type, data structure, and goal in one sentence.
  2. For each predictor, suggest at most two sensible transformations (log, spline, binning, standardisation) and note why.
  3. Propose interactions only where domain or design justifies them; state the added degrees of freedom.
  4. Recommend selection methods (filter, wrapper, embedded, regularisation) that suit the sample size, missingness, and model family.
  5. Flag leakage risks, collinearity, and variables that need subject-matter confirmation.
  6. Give an ordered plan for testing these choices without inventing figures.

Output format Use markdown sections: Inputs summary; Predictor and transformation table; Interaction ideas; Selection methods; Risks and checks; Next steps. Aim for 500 words or fewer. Plain, technical tone. Leave out code, p-values, and invented thresholds.

Guardrails Do not invent variable names, dataset facts, or statistical cut-offs. Flag every assumption and missing input before suggesting transforms. Tell the user when a choice must be confirmed with the study team or a qualified statistician.

Example Outcome: 30-day readmission (binary). Predictors: age, length of stay, prior admissions, discharge destination, lab values. n=4,200, 12% missing labs. Cross-sectional. Model: logistic regression. Goal: prediction.