Hello, I am trying to get p value and t values for given data. Every time I try to run my data, keeps giving me ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, ;, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=. My SAS code is below. Any help would be appreciated. data A1; n = 12; mu0 = 241; xbar = 235; sd = 12.5; se = sd/sqrt(n); df = n-1 tval = (xbar-mu0)/se; pval = (1-cdf('T',abs(tval),df))*2; run; proc print data=A1; run;
... View more