I'm trying to analyze my data using the Summary Statistics and One-Way Anova but on the Top Corner, there a red exclamation point next to the DATA sub-heading and the "Add Columns" sign (+) won't let me add my variables.
Does the ORGAN dataset actually have any numeric variables to use in an analysis?
Share the output of PROC CONTENTS. Preferably as text pasted into the pop-up window that opens when you hit the Insert Code icon (looks like < / > ).
/* Generated Code (IMPORT) */
/* Source File: Rough Data-Organ Weight (7.6.23).xlsx */
/* Source Path: /home/u62478585/Summer 2022 Poultry Research */
/* Code generated on: 7/6/23, 2:39 PM */
%web_drop_table(WORK.ORGAN);
FILENAME REFFILE '/home/u62478585/Summer 2022 Poultry Research/Rough Data-Organ Weight (7.6.23).xlsx';
PROC IMPORT DATAFILE=REFFILE
DBMS=XLSX
OUT=WORK.ORGAN;
GETNAMES=YES;
SHEET="Organ Weights";
RUN;
PROC CONTENTS DATA=WORK.ORGAN; RUN;
%web_open_table(WORK.ORGAN);
I'm wondering if this is a problem caused by the spaces and parentheses in the variable names.
What happens if you first run the command
options validvarname=any;
and then try the one-way ANOVA?
So as Sherlock Holmes would say, once you have eliminated many possible causes, whatever is left (no matter how unlikely) is the cause.
So, we are trying to eliminate causes now.
Please show us the ENTIRE output from PROC CONTENTS. When I run PROC CONTENTS, the very first table in the output shows the name of the data set. We need to see this and the rest of the PROC CONTENTS output. Here is that first table when I run PROC CONTENTS on the data set SASHELP.CLASS, you can clearly see that the name of the data set is provided.
%web_drop_table(WORK.ORGAN);
FILENAME REFFILE '/home/u62478585/Summer 2022 Poultry Research/Rough Data-Organ Weight (7.6.23).xlsx';
PROC IMPORT DATAFILE=REFFILE
DBMS=XLSX
OUT=WORK.ORGAN;
GETNAMES=YES;
SHEET="Organ Weights";
RUN;
PROC CONTENTS DATA=WORK.ORGAN; RUN;
proc means data=organ;
run;
What happens if you run that?
What the error message says is: " ... the following roles are not set: Analysis variable". Your screen capture shows that you have not assigned a variable in the Analysis variables dialog box. You need to do that. Similarly, you will need to assign a variable to the Classification variables box.
Sorry for the late response. Thank you everyone for helping me with my SAS problem, but I did figured out what was the problem. There was a problem with my Library Folders.Thank you to the individuals for reaching out and helping me. I really appreciate it.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.
Find more tutorials on the SAS Users YouTube channel.