当我运行
我的问题是我是否能将这个p值单独提取到一个表格中。
gam.check(my_spline_gam)
时,会得到以下输出结果。Method: GCV Optimizer: magic
Smoothing parameter selection converged after 9 iterations.
The RMS GCV score gradiant at convergence was 4.785628e-06 .
The Hessian was positive definite.
The estimated model rank was 25 (maximum possible: 25)
Model rank = 25 / 25
Basis dimension (k) checking results. Low p-value (k-index<1) may
indicate that k is too low, especially if edf is close to k'.
k' edf k-index p-value
s(x) 24.000 22.098 0.849 0.06
我的问题是我是否能将这个p值单独提取到一个表格中。
str(gam.check(my_spline_gam))
。 - Andre Elricodput(gam.check(my_spline_gam))
的结果添加到您的问题中。然后我可以解决它。 - Andre Elricok.check(yourmodel,subsample = 5000,n.rep = 200)
。 - user20650