<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cross_hyou</author_name>
  <author_url>https://blog.hatena.ne.jp/cross_hyou/</author_url>
  <blog_title>Rで何かをしたり、読書をするブログ</blog_title>
  <blog_url>https://www.crosshyou.info/</blog_url>
  <categories>
    <anon>データ分析</anon>
  </categories>
  <description>www.crosshyou.info の続きです。前回は lm() 関数を使って、線形モデルで重回帰分析をしました。R-squared は 0.22 ということで残念ながら線形モデルでは、所見率は上手く説明できないようでした。そこで今回は決定木モデルを使ってみます。 はじめに rpart パッケージ、rpart.plot パッケージの読み込みをします。 モデルを作成します。 cp の確認をします。 cp = 0.01 のときが一番、xerror が小さくなります。 最適な cp を保存して、この cp で木の選定をします。 作成した決定木をグラフにします。 一番左の枝に注目すると、log_ju…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2026%2F04%2F19%2F095855&quot; title=&quot;都道府県別の定期健康診断結果報告のデータの分析6 - 決定木モデルでの回帰分析 - Rで何かをしたり、読書をするブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/c/cross_hyou/20260419/20260419093224.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-19 09:58:55</published>
  <title>都道府県別の定期健康診断結果報告のデータの分析6 - 決定木モデルでの回帰分析</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2026/04/19/095855</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
