<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koiti_yano</author_name>
  <author_url>https://blog.hatena.ne.jp/koiti_yano/</author_url>
  <blog_title>ハリ・セルダンになりたくて</blog_title>
  <blog_url>https://koiti-yano.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>そもそもlm()（とglm()）には「data.frameの列がfactorである場合、自動的にダミー変数を作って、回帰してくれる」という機能がある（manにきちんと書かれてないので知らない人が多いかも）。 stats.idre.ucla.edu が、lmやglmの「自動でダミー変数を作る機能」だと思うようなダミー変数にならない場合もあるので、パッケージでダミー変数を作ることを考える。 いくつかパッケージがあるが、それなりに使いやすいパッケージとしてfastDummiesがあるため、その中のdummy_cols()を使ってダミー変数を作る方法を以下に記す。 require(fastDummie…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoiti-yano.hatenablog.com%2Fentry%2F2020%2F02%2F29%2F142343&quot; title=&quot;Rでダミー変数を作る（fastDummies） - ハリ・セルダンになりたくて&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-02-29 14:23:43</published>
  <title>Rでダミー変数を作る（fastDummies）</title>
  <type>rich</type>
  <url>https://koiti-yano.hatenablog.com/entry/2020/02/29/142343</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
