spm(SemiPar)
spm()所属R语言包:SemiPar
Fit a SemiParametric regression Model
适合一个半参数回归模型
译者:生物统计家园网 机器人LoveR
描述----------Description----------
spm is used to fit semiparametric regression models using the mixed model representation of penalized splines (per Ruppert, Wand and Carroll, 2003).
spm来拟合半参数回归模型,使用混合模型表示的惩罚样条曲线(每鲁珀特,魔杖和Carroll,2003)。
用法----------Usage----------
spm(form,random=NULL,group=NULL,family="gaussian",
spar.method="REML",omit.missing=NULL)
参数----------Arguments----------
参数:form
a formula describing the model to be fit. Note, that an intercept is always included, whether given in the formula or not.
公式描述的模型是合适的。注意,总是包括截距,是否在式或不给出。
参数:random
"random=~1" specifies inclusion of a random intercept according to the groups specified by the "group" argument.
“随机= 1”指定纳入的随机拦截到指定组的“组”的说法。
参数:group
a vector of labels for specifying groups.
用于指定组的标签的向量。
参数:family
for specification of the type of likelihood model assumed in the fitting. May be "gaussian","binomial" or "poisson"
似然模型的类型的规范的时间假设在嵌合。可能是“高斯”,“二项式”或“泊松”
参数:spar.method
method for automatic smoothing parameter selection. May be "REML" (restricted maximum likelihood) or "ML" (maximum likelihood).
自动平滑参数选择的方法。可能是“REML”(限制最大似然)或“ML”(最大似然)。
参数:omit.missing
a logical value indicating whether fields with missing values are to be omitted.
一个逻辑值,该值指示是否具有缺失值的字段以省略。
Details
详细信息----------Details----------
See the SemiPar Users' Manual for details and examples.
请参阅用户手册“半参数的细节和例子。
值----------Value----------
An list object of class "spm" containing the fitted model. The components are: <table summary="R valueblock"> <tr valign="top"><td>fit</td> <td> mimics fit object of lme() for family="gaussian" and glmmPQL() for family="binomial" or family="poisson".</td></tr> <tr valign="top"><td>info</td> <td> information about the inputs.</td></tr> <tr valign="top"><td>aux</td> <td> auxiliary information such as variability estimates.</td></tr> </table>
一个List对象的类"spm"拟合模型。这些组件有:<table summary="R valueblock"> <tr valign="top"> <TD> fit</ TD> <TD>模仿伦敦金属交易所(合适的对象)的家庭=“高斯”和glmmPQL()=“二项式”或家庭的家庭=“泊”。</ TD> </ TR> <tr valign="top"> <TD>info </ TD> <TD>信息输入。</ TD> </ TR> <tr valign="top"> <TD>aux </ TD> <TD>辅助信息,如变异估计。</ TD> </ TR> </表>
(作者)----------Author(s)----------
M.P. Wand
<a href="mailto:mwand@uow.edu.au">mwand@uow.edu.au</a>
(other contributors listed in SemiPar Users' Manual).
参考文献----------References----------
Ruppert, D., Wand, M.P. and Carroll, R.J. (2003)<br> Semiparametric Regression Cambridge University Press.<br> http://stat.tamu.edu/~carroll/semiregbook/
Ganguli, B. and Wand, M.P. (2005)<br> SemiPar 1.0 Users' Manual.<br> http://www.uow.edu.au/~mwand/SPmanu.pdf
参见----------See Also----------
gam (in package "mgcv") lme (in package "nlme") glmmPQL (in package "MASS") plot.spm summary.spm
gam(在包“mgcv”)lme的(在包NLME“)glmmPQL(包质量)plot.spmsummary.spm的
实例----------Examples----------
library(SemiPar)
data(fossil)
attach(fossil)
fit <- spm(strontium.ratio~f(age))
plot(fit)
summary(fit)
data(calif.air.poll)
attach(calif.air.poll)
fit <- spm(ozone.level ~ f(daggett.pressure.gradient)+
f(inversion.base.height) +
f(inversion.base.temp))
summary(fit)
par(mfrow=c(2,2))
plot(fit)
# The SemiPar User Manual contains several other examples[半参数用户手册中包含了一些其他的例子]
# and details of plotting parameters.[绘制参数的详细信息。]
#[]
# The current version of the manual is posted on the web-site:[当前版本的手册上发布的网站:]
#[]
# www.uow.edu.au/~mwand/SPmanu.pdf []
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|