<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jnobuyuki</author_name>
  <author_url>https://blog.hatena.ne.jp/jnobuyuki/</author_url>
  <blog_title>jnobuyukiのブログ</blog_title>
  <blog_url>https://webbeginner.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>R言語</anon>
  </categories>
  <description>前回、R言語で変数型を意識した方が良い例として重回帰分析を紹介しました。その投稿を見てくれた知り合いが、自身の失敗談を教えてくれたので、今回はその話をします。知り合いの話では、「本来数値データとして独立変数に入れるつもりが、なぜかファクター型として読み込まれてしまっていた。回帰分析の出力結果を見たときに、変数の読み込み失敗に気づいたので、ファクター型変数を数量型変数へと変換した。ところが解析結果は結局おかしなものになってしまった。」というものでした。 仮想例による再現 前回の例を参考にしながら、上で書いた状態を再現してみましょう。まず、従属変数と独立変数として二つの数量型変数をつくります。 s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwebbeginner.hatenablog.com%2Fentry%2F2017%2F02%2F02%2F180536&quot; title=&quot;R言語での変数の型確認の重要性(3) - jnobuyukiのブログ&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/j/jnobuyuki/20170202/20170202175608.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-02-02 18:05:36</published>
  <title>R言語での変数の型確認の重要性(3)</title>
  <type>rich</type>
  <url>https://webbeginner.hatenablog.com/entry/2017/02/02/180536</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
