« ファシズムとは何か。 | トップページ | 中道改革連合の得票率が、2党合流前よりも著しく低下した地域 »

2026年4月17日 (金)

投票率と各党の得票率(衆議院議員選挙2026年、福岡)

基本的には、有権者数の多い投票区(区市町村)では、投票率が低いという傾向がある。

Screenshot-20260417-at-213722

自民党の得票率だけが投票率とプラスの関係

Screenshot-20260417-at-205812 Screenshot-20260417-at-205830 Screenshot-20260417-at-205856 Screenshot-20260417-at-205844

/* --- 準備:キャプションの定義(AONF形式) --- */
/* セミコロンの位置を明確にし、URLを確実に一行で定義します */
%let AONF_CAPTION = Archives from 2026 Onward and Notes for the Future 2026年以降の記録 | https://ab.cocolog-nifty.com/note/;

/* グラフィック設定のリセット */
ods graphics / reset width=600px height=600px;

/* ---------------------------------------------------------------------
   4. 相関図の描画マクロ(変数名をクォーテーションで囲みました)
   --------------------------------------------------------------------- */
%macro plot_correlation(party_var, party_name, line_color, marker_color);
    data work.plot_data;
        set election_data;
        
        /* 1. 全政党の得票合計を計算(各変数名を " "n で囲む必要があります) */
        Total_Sum = sum(
            "れいわ新選組"n, "日本保守党"n, "自由民主党"n, "中道改革連合"n,
            "減税日本_ゆうこく"n, "チームみらい"n, "社会民主党"n,
            "日本維新の会"n, "参政党"n, "国民民主党"n, "日本共産党"n
        );
        
        /* 2. 指定された政党の得票率を計算 */
        if Total_Sum > 0 then 
            Share_Party = ("&party_var"n / Total_Sum) * 100;
        else Share_Party = .;

        /* 3. 投票率(X軸) */
        X_Axis_Value = turnout; 
    run;

    title1 "投票率と&party_name.得票率の相関(福岡)";
    footnote1 j=r "&AONF_CAPTION.";

    proc sgplot data=work.plot_data;
        /* 回帰直線 */
        reg x=X_Axis_Value y=Share_Party / 
            lineattrs=(color=&line_color. thickness=2) 
            clm clmtransparency=0.7;
        /* 散布図 */
        scatter x=X_Axis_Value y=Share_Party /
                markerattrs=(symbol=CircleFilled size=8 color=&marker_color.)
                datalabel=name 
                datalabelattrs=(size=7);
        xaxis grid label="投票率 (%)";
        yaxis grid label="&party_name. 得票率 (%)";
    run;
    title; footnote;
%mend;

/* 各政党のグラフ出力実行 */
%plot_correlation(自由民主党, 自由民主党, firebrick, cx3498db);
%plot_correlation(中道改革連合, 中道改革連合, forestgreen, cx27ae60);
%plot_correlation(参政党, 参政党, orange, cxe67e22);
%plot_correlation(国民民主党, 国民民主党, orange, cxf39c12);
%plot_correlation(チームみらい, チームみらい, cx3498db, cx2980b9);

|

« ファシズムとは何か。 | トップページ | 中道改革連合の得票率が、2党合流前よりも著しく低下した地域 »

「分析メモ」カテゴリの記事