scam.check(scam)
scam.check()所属R语言包:scam
Some diagnostics for a fitted scam object
合身的诈骗对象的一些诊断
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Takes a fitted scam object produced by scam() and produces some diagnostic information about the fitting procedure and results. This function is almost the same as gam.check of the mgcv library.
注意到一个装有scam对象scam()和装修的过程和结果产生了一些有关的诊断信息。此功能几乎是相同gam.checkmgcv图书馆。
用法----------Usage----------
scam.check(b)
参数----------Arguments----------
参数:b
a fitted scam object as produced by scam().
一个装有scam对象产生的scam()。
Details
详细信息----------Details----------
As for mgcv(gam) plots 4 standard diagnostic plots, and some other convergence diagnostics. The printed information relates to the optimization process used to select smoothing parameters.
至于mgcv(gam)图4标准的诊断图,和一些其他的收敛诊断。打印的信息涉及用于选择平滑参数的优化过程。
(作者)----------Author(s)----------
Natalya Pya <nat.pya@gmail.com> based partly on <code>mgcv</code> by Simon Wood
参考文献----------References----------
参见----------See Also----------
scam
scam
实例----------Examples----------
## Not run: [#不运行:]
library(scam)
set.seed(2)
n <- 200
x1 <- runif(n)*4-1;
f1 <- exp(4*x1)/(1+exp(4*x1)) # monotone increasing smooth[单调递增光滑]
x2 <- runif(n)*3-1;
f2 <- exp(-3*x2)/15 # monotone decreasing and convex smooth[单调递减和凸面光滑]
f <- f1+f2
y <- f+ rnorm(n)*0.2
dat <- data.frame(x1=x1,x2=x2,y=y)
b <- scam(y~ s(x1,k=25,bs="mpi",m=2)+s(x2,k=25,bs="mdcx",m=2),
family=gaussian(link="identity"),data=dat)
plot(b,pages=1)
scam.check(b)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|