{"author_url":"https://blog.hatena.ne.jp/iDES/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fides.hatenablog.com%2Fentry%2F2024%2F06%2F08%2F171124\" title=\"\u53cd\u5fa9\u4ea4\u5dee\u691c\u8a3c / Repeated Cross-Validation\u3092\u7528\u3044\u305fLasso[R] - \u4e95\u51fa\u8349\u5e73\u306e\u7814\u7a76\u30ce\u30fc\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","type":"rich","provider_url":"https://hatena.blog","image_url":null,"published":"2024-06-08 17:11:24","categories":["Lasso, Ridge, EN","\u8a08\u91cf"],"width":"100%","url":"https://ides.hatenablog.com/entry/2024/06/08/171124","height":"190","blog_title":"\u4e95\u51fa\u8349\u5e73\u306e\u7814\u7a76\u30ce\u30fc\u30c8","description":"\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f library(haven) library(tidyr) # \u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\u3068\u524d\u51e6\u7406 auto <- haven::read_dta(\"http://www.stata-press.com/data/r9/auto.dta\") auto <- auto %>% drop_na() # \u5168\u30ab\u30e9\u30e0\u306b\u5bfe\u3057\u3066NA\u304c\u306a\u3044\u884c\u3092\u62bd\u51fa # foreign\u5217\u3092\u6574\u6570\u306b\u5909\u63db auto$foreign <- as.integer(auto$foreign) Repeated Cross-Validation \u4eca\u56de\u306f\u53cd\u5fa9\u3059\u308b\u56de\u6570\u306f5\u56de\u3068\u3059\u308b\u3002CV\u306f10-folds CV\u3067\u3042\u308b\u3002 library(c\u2026","version":"1.0","blog_url":"https://ides.hatenablog.com/","title":"\u53cd\u5fa9\u4ea4\u5dee\u691c\u8a3c / Repeated Cross-Validation\u3092\u7528\u3044\u305fLasso[R]","author_name":"iDES"}