x为SMAV,y为FR,还要求出决定系数r方,均方根RMSE,残差平方和SSE,及KS检验结果 返回小木虫查看更多
glm
你会了吗
> dt = data.frame(SMAV=c(50,114,360,4250,11800,49290,93600,209800), + Fr=c(0.0243,0.121,0.268,0.365,0.463,0.756,0.902,0.975)) > rsquare [1] 0.7354697 > rmse [1] 0.8560715 > sse [1] 2.037556 > ks One-sample Kolmogorov-Smirnov test data: resid(z, type = "resp" D = 0.44454, p-value = 0.05855 alternative hypothesis: two-sided,
glm
你会了吗
> dt = data.frame(SMAV=c(50,114,360,4250,11800,49290,93600,209800),
+ Fr=c(0.0243,0.121,0.268,0.365,0.463,0.756,0.902,0.975))
> rsquare
[1] 0.7354697
> rmse
[1] 0.8560715
> sse
[1] 2.037556
> ks
One-sample Kolmogorov-Smirnov test
data: resid(z, type = "resp"
D = 0.44454, p-value = 0.05855
alternative hypothesis: two-sided,