<?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 の続きです。 mgcvパッケージの読み込みをしてgam関数をつかって、generlized additive modelを作って男性、女性を予測してみます。 gam関数をつかってモデルを作ります。 このモデルでpredict関数を使い予測してみましょう。 confusionMatrix関数で結果と正解率を出します。 正解率は85%です。 summary関数でこのモデルを見てみます。 s(year)のedfの値が9で一番大きいです。一番yearがぐにゃぐにゃしているということですね。百聞は一見に如かず。plot関数でグラフにしてみます。 edfが1のpopも…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2021%2F04%2F17%2F102922&quot; title=&quot;短時間労働者の給与のデータの分析１０ - R言語のmgcv::gam関数でGeneralized Additive Model, e1071::svm関数でSupport Vector Machine Model - 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/20210417/20210417094707.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-04-17 10:29:22</published>
  <title>短時間労働者の給与のデータの分析１０ - R言語のmgcv::gam関数でGeneralized Additive Model, e1071::svm関数でSupport Vector Machine Model</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2021/04/17/102922</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
