<?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関数で線形回帰と、randomForest関数でランダムフォレストを実行してみようと思います。 前回は、各変数の最小値や最大値を確認しました。 各変数の値の大きさがバラバラだとランダムフォレストに適さないので、まず各データ変数を最小値が0、最大値が1になるように標準化します。 apply関数とmin関数で各変数の最小値を取得しますapply関数とmax関数で各変数の最大値を取得します。そうしたらscale関数で標準化します。 つぎの作業は、df3_scaledはデータフレームではなくてマトリックスなのでas.data.frame関数…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2020%2F04%2F20%2F183653&quot; title=&quot;都道府県別の最終学歴人口のデータ分析２ - R言語で線形回帰(lm関数)とランダムフォレスト(rondoForest関数)を実行する。 - 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/20200420/20200420175847.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-20 18:36:53</published>
  <title>都道府県別の最終学歴人口のデータ分析２ - R言語で線形回帰(lm関数)とランダムフォレスト(rondoForest関数)を実行する。</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2020/04/20/183653</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
