[程式] SAS univariate 求觀察值與中位數關係
TITLE請註名軟體類別 如[程式] stata
發文前請把灰色的註解刪除(可使用ctrl+y刪除一整行)
[軟體程式類別]:
請填入軟體程式類別,例如:SAS、SPSS、AMOS、R、STATA、EVIEWS...等
SAS
[程式問題]:
資料處理、迴歸、敘述統計、logistic、probit...等
ANOVA
[軟體熟悉度]:
請把以下不需要的部份刪除
新手
[問題敘述]:
請詳盡敘述遭遇到的問題,可能的話,分點敘述你要處理的流程
能夠分點敘述處理流程,基本上在撰寫程式或者跑統計時是相當有幫助的
甚至有經驗的人可以藉此告知你步驟是否錯誤
大家好
我對SAS還很不熟
目前有univariate的code要帶入資料
已知中位數是175
要看17個數值與175的關聯度
code如下
[程式範例]:
張貼能夠重現錯誤的程式碼,可以幫助版友更快的幫你解決問題
建立重現錯誤的方法可以參考:
程式碼可貼於以下網站:
http://ideone.com/
http://codepad.org
http://pastie.org/
http://nopaste.info/
http://pastebin.com/
http://paste.plurk.com
http://gist.github.com/
http://nopaste.csie.org/
data signtest;
input observation;
datalines;
178
170
191
179
182
177
184
182
179
183
0
172
183
169
177
180
184
;
data signtest_2;
set signtest;
input observation diff;
diff=observation-175;
run;
我得到錯誤值就是diff這個變數有syntax錯誤
希望請教大家如何修改
謝謝大家~~
--
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 129.21.71.35
※ 文章網址: https://www.ptt.cc/bbs/Statistics/M.1522985106.A.BCA.html
→
04/06 11:26,
7年前
, 1F
04/06 11:26, 1F
→
04/06 11:27,
7年前
, 2F
04/06 11:27, 2F
→
04/06 11:28,
7年前
, 3F
04/06 11:28, 3F
推
04/06 11:43,
7年前
, 4F
04/06 11:43, 4F
→
04/06 20:04,
7年前
, 5F
04/06 20:04, 5F
→
04/06 20:04,
7年前
, 6F
04/06 20:04, 6F
→
04/06 20:05,
7年前
, 7F
04/06 20:05, 7F