BookmarkSubscribeRSS Feed
CathyVI
Lapis Lazuli | Level 10

Am working on this practice learning model: I have a data that can be used to estimate the effects of two genes on cancer incidence.  Assume these data were obtained from a large prospective cohort study.  It can be assumed that the sample was taken from a genetically homogenous population and thus confounding is not an issue. How can I present the evidence for interaction as suggested by Knol and VandeWeele (2012) in table form. First, I thought about creating a dummy variable in sas but I don't know the code for interaction for a dichotomous variable.

This is my sample data:

IDGeneAGeneBCancer
1011
2001
3000
4000
5010
6000
7000
8000
9001
10010
11100
12000
13010
14100
15100
16000
17010
18010
19111
1 REPLY 1
StatDave
SAS Super FREQ

Interactions in a modeling procedure are indicated with an asterisk. For example:
class genea geneb;
model cancer = genea geneb genea*geneb;

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 551 views
  • 1 like
  • 2 in conversation