<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>coffee_kabu</author_name>
  <author_url>https://blog.hatena.ne.jp/coffee_kabu/</author_url>
  <blog_title>Bus errorとSegmentation faultに困ったら見るブログ</blog_title>
  <blog_url>https://coffee-guhaw.hateblo.jp/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>#fitdiftrを使うためのパッケージ library(MASS) # tableでデータ読み込み、1列目のみ抜き出しているが必要かはわからん data1 &lt;- read.table(&quot;hoge.txt&quot;) data2 &lt;- data1[, 1] # chi square分布でフィットする # chi_kには推定された自由度を代入しておく chi_df &lt;- fitdistr(data2, &quot;chi-squared&quot;, start=list(df=2), method=&quot;BFGS&quot;) chi_k &lt;- chi_df[[1]][1] # histではなくtruehistで確率密度関数にする c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F01%2F30%2F000000&quot; title=&quot;【R】chi^2分布でフィットして、ヒストグラムを書きたい - Bus errorとSegmentation faultに困ったら見るブログ&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>2025-01-30 00:00:00</published>
  <title>【R】chi^2分布でフィットして、ヒストグラムを書きたい</title>
  <type>rich</type>
  <url>https://coffee-guhaw.hateblo.jp/entry/2025/01/30/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
