回帰式において二乗項を含める(R)
回帰式で二乗項を含めたい場合は,I()関数を使う.
glm(y~x+I(x^2),data=data, family=poisson)
I()関数は,"Inhibit Interpretation/Conversion of Objects"とのこと.
https://stat.ethz.ch/R-manual/R-devel/library/base/html/AsIs.html
回帰式で二乗項を含めたい場合は,I()関数を使う.
glm(y~x+I(x^2),data=data, family=poisson)
I()関数は,"Inhibit Interpretation/Conversion of Objects"とのこと.
https://stat.ethz.ch/R-manual/R-devel/library/base/html/AsIs.html