<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iDES</author_name>
  <author_url>https://blog.hatena.ne.jp/iDES/</author_url>
  <blog_title>井出草平の研究ノート</blog_title>
  <blog_url>https://ides.hatenablog.com/</blog_url>
  <categories>
    <anon>Lasso, Ridge, EN</anon>
    <anon>R</anon>
    <anon>計量</anon>
  </categories>
  <description>クロスバリデーションの基本的な方法ホールドアウト法やり方と変数選択と推定の安定性のシミュレーションを行った。 n-fold クロスバリデーションがよくつかわれているため、ホールドアウト法はあまり使われないので実践向きではない。 今回は訓練データを70%、テストデータを30%と一番よく選ばれる比率で行った。 # 必要なライブラリの読み込み library(haven) library(dplyr) library(glmnet) library(caret) # データの読み込みと前処理 auto &lt;- haven::read_dta(&quot;http://www.stata-press.com/da…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fides.hatenablog.com%2Fentry%2F2024%2F06%2F12%2F213743&quot; title=&quot;Lasso ホールドアウト法と変数選択と推定の安定性のシミュレーション[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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-06-12 21:37:43</published>
  <title>Lasso ホールドアウト法と変数選択と推定の安定性のシミュレーション[R]</title>
  <type>rich</type>
  <url>https://ides.hatenablog.com/entry/2024/06/12/213743</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
