私はこのデータセットを持っています:
data flu;
input FluShotStatus age HealthAwareIndex gender;
datalines;
0 59 52 0
0 61 55 1
1 82 51 0
0 51 70 0
0 53 70 0
0 62 49 1
1 51 69 1
0 70 54 1
0 71 65 1
0 55 58 1
1 58 48 0
0 53 58 1
0 72 65 0
1 56 68 0
0 56 83 0
0 81 68 0
1 62 44 0
;
run;
このデータセットから複数の異なるプロットを作成しようとしています。
まず、ODS を使用して、変数の健康意識指数の QQ プロットを作成します。私はこのコードを使用しました。これは私が望むことを行いますが、もっと良いと思います:
ods graphics on;
proc univariate data=Measures;
var Length Width;
qqplot;
title ‘QQ Plot for Health Awareness Index’;
ods graphics off;
run;
次に、ODS を使用して健康意識指数と年齢を男性被験者のみに適用した散布図を作成します。私は使用してみました:
ods graphics on;
proc sgscatter data=flu;
plot HealthAwareIndex*weight
run;
ods graphics off;
どうすればいいのか知りたいのですが、1つのページに個別のヒストグラムを作成する方法がわかりません。50 歳から 70 歳の男性に最適です。ヒントやヘルプをいただければ幸いです。