Thanks for effort sir... Expect more on Basic analytics terms used in sas analysis.. So that I'll be on the line when you explain the concepts.. Thanks you
of course it doesn't. It should be If upcase(weightstatus) ne "UNDERWEIGHT" rather than If upcase(weightstatus) ne "underweight". Watch the video again carefully. The upcase function converts everything to upcase and your condition does not have upcase character string value.
The Error is NOTE: AUTOEXEC processing completed. NOTE: Cancel command accepted. 1 data WORK . HEART; 2 SET SASHELP . HEART; ERROR: File SASHELP.HEART.DATA does not exist. 3 IF UPCASE (WEIGHT_STATUS) NE "UNDERWEIGHT"; 4 RUN; NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column). 3:12 NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.HEART may be incomplete. When this step was stopped there were 0 observations and 1 variables. NOTE: DATA statement used (Total process time): real time 0.46 seconds cpu time 0.12 seconds 5 TITLE "PROC TTEST - CHROLESTOREL VS WEIGHT STATUS"; 6 PROC TTEST DATA=WORK . HEART; 7 CLASS WEIGHT_STATUS; 8 VAR CHOLESTOREL; ERROR: Variable CHOLESTOREL not found. 9 RUN; what should I do
The script runs if you use if lowcase(weight_status) NE "overweight"; instead of the upcase shown in the video. Obviously, it does give you different values but that way you can at least follow the tutorial since the upcase statement doesn't work (I don't know why).
It should be If upcase(weightstatus) ne "UNDERWEIGHT" rather than If upcase(weightstatus) ne "underweight". Watch the video again carefully. The upcase function converts everything to upcase and your condition does not have upcase character string value
Thanks for effort sir...
Expect more on Basic analytics terms used in sas analysis..
So that I'll be on the line when you explain the concepts..
Thanks you
That's great ! But i'vent got really glm method with all of option you had
Also the dunnet
Error cant find ctrl level for effect chol_status
The
If upcase(weightstatus) ne "underweight"
Doesnt work for me 9.3
+pa pt What's the error that you get in the log when you try to run it?
of course it doesn't. It should be If upcase(weightstatus) ne "UNDERWEIGHT" rather than If upcase(weightstatus) ne "underweight". Watch the video again carefully. The upcase function converts everything to upcase and your condition does not have upcase character string value.
The Error is
NOTE: AUTOEXEC processing completed.
NOTE: Cancel command accepted.
1 data WORK . HEART;
2 SET SASHELP . HEART;
ERROR: File SASHELP.HEART.DATA does not exist.
3 IF UPCASE (WEIGHT_STATUS) NE "UNDERWEIGHT";
4 RUN;
NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
3:12
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.HEART may be incomplete. When this step was stopped there were 0
observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.46 seconds
cpu time 0.12 seconds
5 TITLE "PROC TTEST - CHROLESTOREL VS WEIGHT STATUS";
6 PROC TTEST DATA=WORK . HEART;
7 CLASS WEIGHT_STATUS;
8 VAR CHOLESTOREL;
ERROR: Variable CHOLESTOREL not found.
9 RUN;
what should I do
The script runs if you use
if lowcase(weight_status) NE "overweight";
instead of the upcase shown in the video. Obviously, it does give you different values but that way you can at least follow the tutorial since the upcase statement doesn't work (I don't know why).
It should be If upcase(weightstatus) ne "UNDERWEIGHT" rather than If
upcase(weightstatus) ne "underweight". Watch the video again carefully.
The upcase function converts everything to upcase and your condition
does not have upcase character string value
The condition looks good as he used "UNDERWEIGHT" in upper case while comparing so upcase function will work.
"Chrolesterel"