Hi, Here is the code that I have written. The file is stored in the work library.
proc ttest data=work.Ameshousing
plots(shownull)=interval
H0=135000;
var SalePrice;
title "One-Sample t-test testing whether mean SalePrice=$135,000";
run;
title;
I am getting the below error
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, CI, COCHRAN, DATA, H0.
ERROR 76-322: Syntax error, statement will be ignored.
Please make our life easier. Show us the relevant parts of the SASLOG, in this case the entire PROC TTEST code and associated warnings and error messages, so we can see where the error appears.
CLick on the {i} icon and paste your SASLOG into the window that appears.
Ran your code, modifying it to use SASHELP.SHOES and no errors were generated.
Couple of reasons why this may happen:
I'm guessing on #1 or #3.
You can check your version using
proc product_status;run;
You're specifically looking for your SAS version and SAS/ETS versions.
@asifgeneral wrote:
Hi, Here is the code that I have written. The file is stored in the work library.
proc ttest data=work.Ameshousing
plots(shownull)=interval
H0=135000;
var SalePrice;
title "One-Sample t-test testing whether mean SalePrice=$135,000";
run;title;
I am getting the below error
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, CI, COCHRAN, DATA, H0.
ERROR 76-322: Syntax error, statement will be ignored.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.