- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 09-19-2023 02:10 PM
(554 views)
I tried to load a simple code PROC FREQ in SAS, create a 2x2 table and calculate relevant statistics and this is what I face:
This is the code I input:
LIBNAME Lab1 "/home/u61812062/EPID620"
;
run;
proc contents data = lab1.compassign1;
run;
proc freq data = lab1.compassign1;
table exposure * bladderC / cmh relrisk riskdiff;
run;
Anf this is the error I got. I had the compassign1 stored in permanent library (lab1). And variables: exposure and bladderc were variables in the dataset. How come SAS says the variables not found?!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Variables EXPOSURE and BLADDERC are not in the data set named LAB1.COMPASSIGN1.
You need to look at the variable names in that data set carefully to make sure you have typed the variable names properly, and that these variables are really in the data set.
--
Paige Miller
Paige Miller
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Your code shows that your ran Proc Contents. Where is the output for that procedure?