R語(yǔ)言mgcv包gam()函數(shù)中文幫助文檔(中英文對(duì)照)_第1頁(yè)
R語(yǔ)言mgcv包gam()函數(shù)中文幫助文檔(中英文對(duì)照)_第2頁(yè)
R語(yǔ)言mgcv包gam()函數(shù)中文幫助文檔(中英文對(duì)照)_第3頁(yè)
R語(yǔ)言mgcv包gam()函數(shù)中文幫助文檔(中英文對(duì)照)_第4頁(yè)
R語(yǔ)言mgcv包gam()函數(shù)中文幫助文檔(中英文對(duì)照)_第5頁(yè)
已閱讀5頁(yè),還剩12頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、 17/17 Generalized additive models with integrated smoothness estimation 廣義加性模型與集成的平滑估計(jì)描述DescriptionFits a generalized additive model (GAM) to data, the term GAM being taken to include any quadratically penalized GLM. The degree of smoothness of model terms is estimated as part of fitting. gam can a

2、lso fit any GLM subject to multiple quadratic penalties (includingestimation of degree of penalization). Isotropic or scale invariant smooths of any number of variables are available as model terms, as are linear functionals of such smooths; confidence/credible intervals are readily available for an

3、y quantity predicted using a fitted model; gam is extendable: users can add smooths.適合一個(gè)廣義相加模型(GAM)的數(shù)據(jù),“GAM”被視為包括任何二次處罰GLM。模型計(jì)算的平滑度估計(jì)作為擬合的一部分。 gam也可以適用于任何GLM多個(gè)二次處罰(包括估計(jì)程度的處罰)。各向同性或規(guī)模不變平滑的任意數(shù)量的變量的模型計(jì)算,這樣的線(xiàn)性泛函平滑的信心/可信區(qū)間都是現(xiàn)成的使用擬合模型預(yù)測(cè)任何數(shù)量,“gam是可擴(kuò)展的:用戶(hù)可以添加平滑。Smooth terms are represented using penalized r

4、egression splines (or similar smoothers) with smoothing parameters selected by GCV/UBRE/AIC/REML or by regression splines with fixed degrees of freedom (mixtures of the two are permitted). Multi-dimensional smooths areavailable using penalized thin plate regression splines (isotropic) or tensor prod

5、uct splines(when an isotropic smooth is inappropriate). For an overview of the smooths available see smooth.terms.For more on specifying models see gam.models, random.effects and linear.functional.terms. For more on model selection see gam.selection. Do read gam.check and choose.k.平滑術(shù)語(yǔ)表示使用懲罰回歸花鍵(或類(lèi)似

6、的平滑)與由GCV / UBRE的/ AIC / REML或由固定的自由度(兩個(gè)的混合物被允許)的的回歸花鍵與選擇的平滑化參數(shù)。多維平滑可使用懲罰薄板回歸樣條曲線(xiàn)(各向同性)或X量積樣條線(xiàn)(各向同性的光滑是不恰當(dāng)?shù)模?。的平滑的概述,?qǐng)參閱smooth.terms。欲了解更多有關(guān)指定模型gam.models,random.effects和linear.functional.terms。模型選擇的更多信息,請(qǐng)參閱gam.selection。不要讀為gam.check和choose.k。See gam from package gam, for GAMs via the original Hasti

7、e and Tibshirani approach (see details for differences to this implementation).見(jiàn)GAM包gam,GAMS通過(guò)原來(lái)的Hastie和Tibshirani方法(詳情請(qǐng)參閱本實(shí)施方案的差異)。For very large datasets see bam, for mixed GAM see gamm and random.effects.對(duì)于非常大的數(shù)據(jù)集,請(qǐng)參閱bam,混合GAM看到gamm和random.effects。用法Usagegam(formula,family=gaussian(),data=list(),

8、weights=NULL,subset=NULL, na.action,offset=NULL,method=GCV.Cp, optimizer=c(outer,newton),control=list(),scale=0, select=FALSE,knots=NULL,sp=NULL,min.sp=NULL,H=NULL,gamma=1, fit=TRUE,paraPen=NULL,G=NULL,in.out,.)參數(shù)Arguments參數(shù):formulaA GAM formula (see formula.gam and also gam.models).This is exactly

9、like the formula for a GLM except that smooth terms, s and te can be addedto the right hand side to specify that the linear predictor depends on smooth functions of predictors(or linear functionals of these). 一個(gè)GAM的公式(見(jiàn)formula.gam和gam.models)。這是完全一樣的公式,除非GLM那光滑的條款,s和te可以被添加到指定的線(xiàn)性預(yù)測(cè)依賴(lài)于光滑函數(shù)的預(yù)測(cè)(或線(xiàn)性泛函的右

10、手邊這些)。參數(shù):familyThis is a family object specifying the distribution and link to use in fitting etc. See glm and family for more details. A negative binomial family is provided: see negbin.quasi families actually result in the use of extended quasi-likelihoodif method is set to a RE/ML method (McCulla

11、gh and Nelder, 1989, 9.6). 這是一個(gè)家庭對(duì)象指定的分配和使用配件等glm和family更多的細(xì)節(jié)。負(fù)二項(xiàng)分布家庭提供:看到negbin。 quasi家庭實(shí)際上導(dǎo)致在使用擴(kuò)展的擬似然method設(shè)置為一個(gè)RE / ML方法(McCullagh和Nelder,1989年,9.6)。參數(shù):dataA data frame or list containing the model response variable andcovariates required by the formula. By default the variables are takenfrom env

12、ironment(formula): typically the environment fromwhich gam is called.式所需的一個(gè)數(shù)據(jù)框或列表包含模型響應(yīng)變量,協(xié)變量。默認(rèn)情況下,變量從environment(formula):gam被稱(chēng)為典型的環(huán)境。參數(shù):weightsprior weights on the data.現(xiàn)有的數(shù)據(jù)上的權(quán)重。參數(shù):subsetan optional vector specifying a subset of observations to be used in the fitting process.一個(gè)可選的矢量指定的裝配過(guò)程中可以使用的

13、觀(guān)測(cè)值的一個(gè)子集。參數(shù):na.actiona function which indicates what should happen when the data contain NAs.The default is set by the na.action setting of options, and is na.fail if that is unset.The “factory-fresh” default is na.omit.一個(gè)函數(shù),它表示時(shí)會(huì)發(fā)生什么數(shù)據(jù)包含“NA”。默認(rèn)設(shè)置是“na.action設(shè)置選項(xiàng),na.fail”如果是沒(méi)有設(shè)置的。 “工廠(chǎng)新鮮的”默認(rèn)“na.omit。參

14、數(shù):offsetCan be used to supply a model offset for use in fitting. Note that this offset will always be pletely ignored when predicting, unlike an offsetincluded in formula: this conforms to the behaviour of lm and glm.可以用來(lái)提供一個(gè)模型偏移量用于接頭。請(qǐng)注意,此偏移量總是被完全忽略當(dāng)預(yù)測(cè),不像一個(gè)偏移量包含在formula:這符合的lm和glm的行為。參數(shù):controlA li

15、st of fit control parameters to replace defaults returned bygam.control. Values not set assume default values.一個(gè)合適的控制參數(shù),以取代默認(rèn)值返回gam.control。未設(shè)置假設(shè)值默認(rèn)值。參數(shù):methodThe smoothing parameter estimation method. GCV.Cp to use GCV for unknown scale parameter and Mallows Cp/UBRE/AIC for known scale. GACV.Cp is

16、equivalent, but using GACV in place of GCV. REMLfor REML estimation, including of unknown scale, P-REML for REML estimation, but using a Pearson estimateof the scale. ML and P-ML are similar, but using maximum likelihood in place of REML.平滑參數(shù)估計(jì)方法。 GCV.Cp使用GCV對(duì)未知的尺度參數(shù)和錦葵“的CP / UBRE / AIC已知的規(guī)模。 GACV.C

17、p是等價(jià)的,但使用的GCV GACV的地方。 REMLREML估計(jì),包括不明刻度,P-REMLREML估計(jì),但使用的Pearson估計(jì)規(guī)模。 ML和P-ML是相似的,但用最大似然的地方REML。參數(shù):optimizerAn array specifying the numerical optimization method to use to optimize the smoothingparameter estimation criterion (given by method). perf for performance iteration. outerfor the more stabl

18、e direct approach. outer can use several alternative optimizers, specified in thesecond element of optimizer: newton (default), bfgs, optim, nlmand nlm.fd (the latter is based entirely on finite differenced derivatives and is very slow).一個(gè)數(shù)組,指定的數(shù)值優(yōu)化方法,使用優(yōu)化的平滑參數(shù)估計(jì)準(zhǔn)則(method)。 perf性能迭代。 outer更穩(wěn)定的直接方法。

19、outer可以使用optimizer:newton(默認(rèn)),bfgs,optim,nlm和第二個(gè)元素中指定的幾種可供選擇的優(yōu)化, nlm.fd(后者則是完全基于上有限差分衍生工具,很慢)。參數(shù):scaleIf this is positive then it is taken as the known scale parameter. Negative signals that thescale parameter is unknown. 0 signals that the scale parameter is 1for Poisson and binomial and unknown ot

20、herwise.Note that (RE)ML methods can only work with scale parameter 1 for the Poisson and binomial cases. 如果這是正的,那么它被當(dāng)作已知尺度參數(shù)。負(fù)信號(hào),規(guī)模參數(shù)是未知的。 0信號(hào)泊松分布和二項(xiàng)分布和未知的,否則,尺度參數(shù)為1。需要注意的是(RE)的ML方法只能工作與尺度參數(shù)的泊松分布和二項(xiàng)式情況下。參數(shù):selectIf this is TRUE then gam can add an extra penalty to each term sothat it can be penaliz

21、ed to zero.This means that the smoothing parameter estimation that ispart of fitting can pletely remove terms from the model. If the correspondingsmoothing parameter is estimated as zero then the extra penalty has no effect.如果這是TRUE然后gam可以添加一個(gè)額外的處罰,以每學(xué)期,以便它可以被扣分零。這意味著平滑參數(shù)估計(jì)是擬合的一部分的,可以完全除去從模型中的條款。如果相

22、應(yīng)的平滑參數(shù)估計(jì)值為零,那么額外的罰款沒(méi)有任何效果。參數(shù):knotsthis is an optional list containing user specified knot values to be used for basis construction.For most bases the user simply supplies the knots to be used, which must match up with the k value supplied (note that the number of knots is not always just k).See tprs

23、 for what happens in the tp/ts case.Different terms can use different numbers of knots, unless they share a covariate.這是一個(gè)可選的列表,其中包含用戶(hù)指定的節(jié)點(diǎn)值用于基礎(chǔ)建設(shè)。對(duì)于最基礎(chǔ)的用戶(hù)只需提供要使用的節(jié),它必須匹配的k值(附注的節(jié)點(diǎn)數(shù)不是永遠(yuǎn)只是k)。見(jiàn)tprstp/ts情況下會(huì)發(fā)生什么。不同的術(shù)語(yǔ)可以使用不同的節(jié)數(shù),除非他們共享一個(gè)協(xié)。參數(shù):spA vector of smoothing parameters can be provided here. Smoothi

24、ng parameters must be supplied in the order that the smooth terms appear in the modelformula. Negative elements indicate that the parameter should be estimated, and hence a mixtureof fixed and estimated parameters is possible. If smooths share smoothing parameters then length(sp)must correspond to t

25、he number of underlying smoothing parameters.平滑化參數(shù)的一種向量,可以提供在這里。必須提供平滑參數(shù)的順序,順利的詞出現(xiàn)在模型公式。負(fù)性元件表明應(yīng)當(dāng)估計(jì)的參數(shù),因此,固定和估計(jì)參數(shù)的混合物是可能的。如果平滑份額平滑參數(shù),那么length(sp)必須符合相關(guān)的平滑參數(shù)的數(shù)量。參數(shù):min.spLower bounds can be supplied for the smoothing parameters. Note that if this option is used then the smoothing parameters full.sp, i

26、n thereturned object, will need to be added to what is supplied here to get thesmoothing parameters actually multiplying the penalties. length(min.sp) shouldalways be the same as the total number of penalties (so it may be longer than sp, if smooths share smoothing parameters).下界能夠供給的平滑化參數(shù)。請(qǐng)注意,如果使用此

27、選項(xiàng),然后平滑參數(shù)full.sp,返回的對(duì)象中,將需要添加什么是這里提供的平滑參數(shù)乘以處罰。 length(min.sp)應(yīng)始終是相同的刑罰(所以它可能是長(zhǎng)于sp,如果平滑份額平滑參數(shù))的總?cè)藬?shù)。參數(shù):HA user supplied fixed quadratic penalty on the parameters of theGAM can be supplied, with this as its coefficient matrix. A mon use of this term isto add a ridge penalty to the parameters of the GAM

28、 in circumstances in which the model is close to un-identifiable on the scale of the linear predictor, but perfectly well defined on the response scale.用戶(hù)提供的固定二次罰的GAM的參數(shù)可以提供,這是系數(shù)矩陣。使用這一術(shù)語(yǔ)是一個(gè)常見(jiàn)的添加脊處罰,GAM的情況下,該模型是未識(shí)別的線(xiàn)性預(yù)測(cè)的規(guī)模,但完全定義的響應(yīng)規(guī)模的參數(shù)。參數(shù):gammaIt is sometimes useful to inflate the model degrees off

29、reedom in the GCV or UBRE/AIC score by a constant multiplier. This allowssuch a multiplier to be supplied. 有時(shí)它是有用的GCV或UBRE的/ AIC得分由一個(gè)常乘數(shù)充氣模型的自由度。這允許將要提供這樣一個(gè)乘法器。參數(shù):fitIf this argument is TRUE then gam sets up the model and fits it, but if it is FALSE then the model is set up and an object G containin

30、g what would be required to fit is returned is returned. See argument G.如果這種說(shuō)法是TRUE然后gam設(shè)置模式和適合它,但如果它是FALSE然后對(duì)模型進(jìn)行設(shè)置和對(duì)象G包含將需要,以適應(yīng)返回返回。請(qǐng)參閱參數(shù)G。參數(shù):paraPenoptional list specifying any penalties to be applied to parametric model terms.gam.models explains more.可選的列表,指定參數(shù)模型計(jì)算被應(yīng)用到任何處罰。 gam.models解釋更多。參數(shù):GUs

31、ually NULL, but may contain the object returned by a previous call to gam withfit=FALSE, in which case all other arguments are ignored except for gamma, in.out, scale, control, method optimizer and fit.通常是NULL,但可能包含對(duì)象返回以前調(diào)用gam的fit=FALSE,在這種情況下,所有其它參數(shù)將被忽略,除了gamma,in.out ,scale,control,methodoptimizer

32、和fit。參數(shù):in.outoptional list for initializing outer iteration. If supplied then this must contain two elements: sp should be an array of initialization values for all smoothing parameters (there must be a value for all smoothing parameters, whether fixed or to be estimated, but those for fixed s.p.s

33、are not used); scale is the typical scale of the GCV/UBRE function, for passing to the outer optimizer, or the the initial value of the scale parameter, if this is to be estimated by RE/ML.初始化外部循環(huán)的可選列表。如果提供,則必須包含兩個(gè)要素:sp應(yīng)該是一個(gè)數(shù)組初始化所有的平滑參數(shù)值(是固定的還是要估計(jì),必須有所有的平滑參數(shù)的值,而固定SPS不使用的話(huà));scale是GCV / UBRE功能的的典型尺度,用

34、于傳遞到外的優(yōu)化器,或尺度參數(shù)的初始值,如果這是要估計(jì)的RE / ML。參數(shù):.further arguments forpassing on e.g. to gam.fit (such as mustart).在例如通過(guò)進(jìn)一步的論據(jù)gam.fit(如mustart)。DetailsDetailsA generalized additive model (GAM) is a generalized linear model (GLM) in which the linearpredictor is given by a user specified sum of smooth function

35、s of the covariates plus aconventional parametric ponent of the linear predictor. A simple example is:一個(gè)廣義相加模型(GAM)是一個(gè)廣義線(xiàn)性模型(GLM)的線(xiàn)性預(yù)測(cè)是由用戶(hù)指定的協(xié)變量的函數(shù)平滑,再加上傳統(tǒng)的參數(shù)化組件的線(xiàn)性預(yù)測(cè)的總和。一個(gè)簡(jiǎn)單的例子是:where the (independent) response variables y_iPoi, and f_1 and f_2 are smooth functions of covariates x_1 andx_2. The log

36、 is an example of a link function.(獨(dú)立的)響應(yīng)變量y_iPoi和f_1和f_2是光滑函數(shù)的協(xié)變量x_1和x_2。的log的一個(gè)例子是一個(gè)函數(shù)。If absolutely any smooth functions were allowed in model fitting then maximum likelihoodestimation of such models would invariably result in plex overfitting estimates off_1and f_2. For this reason the models ar

37、e usually fit bypenalized likelihoodmaximization, in which the model (negative log) likelihood is modified by the addition ofa penalty for each smooth function, penalizing its wiggliness. To control the tradeoffbetween penalizing wiggliness and penalizing badness of fit each penalty is multiplied by

38、an associated smoothing parameter: how to estimate these parameters, andhow to practically represent the smooth functions are the main statistical questionsintroduced by moving from GLMs to GAMs.如果確實(shí)被允許在任何光滑的函數(shù)模型擬合,最大似然估計(jì)這些模型往往會(huì)導(dǎo)致復(fù)雜的過(guò)擬合估計(jì)f_1和f_2。出于這個(gè)原因的模型通常是適合由懲罰的可能性最大化,其中模型(負(fù)對(duì)數(shù))的可能性被修改通過(guò)加入每個(gè)平滑函數(shù)罰款,

39、懲罰“wiggliness。要控制,之間的的懲罰wiggliness和懲罰不良適合每個(gè)罰球乘以相關(guān)的平滑參數(shù):如何估計(jì)這些參數(shù)的權(quán)衡,以及如何在實(shí)踐中代表順利的功能是主要的統(tǒng)計(jì)問(wèn)題,介紹了從GLMS GAMS。The mgcv implementation of gam represents the smooth functions usingpenalized regression splines, and by default uses basis functions for these splines thatare designed to be optimal, given the n

40、umber basis functions used. The smooth terms can befunctions of any number of covariates and the user has some control over how smoothness ofthe functions is measured.mgcvgam實(shí)施順利使用懲罰的回歸樣條曲線(xiàn)的功能,在默認(rèn)情況下使用這些曲線(xiàn)的設(shè)計(jì)是最佳的,因?yàn)閿?shù)基函數(shù)的基礎(chǔ)功能。光滑的術(shù)語(yǔ)可以是任意數(shù)量的協(xié)變量的函數(shù),并且用戶(hù)具有一定的控制的函數(shù)的平滑度如何測(cè)量。gam in mgcv solves the smoothing

41、 parameter estimation problem by using theGeneralized Cross Validation (GCV) criteriongam在mgcv解決了平滑參數(shù)估計(jì)問(wèn)題通過(guò)使用廣義交叉驗(yàn)證(GCV)標(biāo)準(zhǔn),or an Un-Biased Risk Estimator (UBRE )criterion或無(wú)偏風(fēng)險(xiǎn)估計(jì)(UBRE)標(biāo)準(zhǔn)where D is the deviance, n the number of data, s the scale parameter andDoF the effective degrees of freedom of the

42、 model. Notice that UBRE is effectively just AIC rescaled, but is only used when s is known.其中D是越軌行為,n數(shù)據(jù)的數(shù)量,s的尺度參數(shù)和DoF有效度模型的自由。請(qǐng)注意,UBRE實(shí)際上只是AIC重新調(diào)整,但只用在s被稱(chēng)為。Alternatives are GACV, or a Laplace approximation to REML. There is some evidence that the latter may actually be the most effective choice.替代品

43、GACV,或Laplace逼近REML。有一些證據(jù)表明,后者實(shí)際上可能是最有效的選擇。Smoothing parameters are chosen tominimize the GCV, UBRE/AIC, GACV or REML scores for the model, and the main putational challenge solvedby the mgcv package is to do this efficiently and reliably. Various alternative numerical methods are provided which can

44、 be set by argument optimizer.平滑化參數(shù)的選擇,以盡量減少GCV,UBRE / AIC,GACV或模型REML分?jǐn)?shù),和求解的主要計(jì)算挑戰(zhàn)mgcv包是有效和可靠地做到這一點(diǎn)。各種替代數(shù)值方法提供了可以設(shè)置的參數(shù)optimizer。Broadly gam works by first constructing basis functions and one or more quadratic penaltycoefficient matrices for each smooth term in the model formula, obtaining a model

45、matrix forthe strictly parametric part of the model formula, and bining these to obtain aplete model matrix (/design matrix) and a set of penalty matrices for the smooth terms.Some linear identifiability constraints are also obtained at this point. The model isfit using gam.fit, a modification of gl

46、m.fit. The GAMpenalized likelihood maximization problem is solved by Penalized IterativelyReweightedLeast Squares (P-IRLS) (see e.g. Wood 2000).Smoothing parameter selection is integrated in one of two ways. (i) Performance iteration uses the fact that at each P-IRLS iteration a penalizedweighted le

47、ast squares problem is solved, and the smoothing parameters of that problem canestimated by GCV or UBRE. Eventually, in most cases, both model parameter estimates and smoothingparameter estimates converge. (ii) Alternatively the P-IRLS scheme is iterated to convergence for each trial set of smoothin

48、g parameters, and GCV, UBRE or REML scores are only evaluated on convergence - optimization is then outer to the P-IRLS loop: in this case the P-IRLS iteration has to be differentiated, to facilitate optimization, and gam.fit3 is used in place of gam.fit. The default is the second method, outer iter

49、ation.廣義gam的工作原理是第一構(gòu)造的基礎(chǔ)功能和一個(gè)或多個(gè)二次罰系數(shù)矩陣中的模型公式為每個(gè)平滑內(nèi),獲得模型矩陣模型公式為嚴(yán)格的參數(shù)的一部分,并結(jié)合這些以獲得一個(gè)完整的模型/設(shè)計(jì)矩陣(矩陣)和刑罰矩陣順利條款的一組。一些線(xiàn)性辨識(shí)性約束在這一點(diǎn)上也能獲得。該模型是適合使用gam.fit,glm.fit修改。的的GAM處罰的可能性最大化問(wèn)題得到解決,由受罰迭代加權(quán)最小二乘法(P-IRLS)(如木材2000)。平滑參數(shù)的選擇是集成在以下兩種方式之一。 (I)的性能迭代“,在每個(gè)P-IRLS迭代一個(gè)懲罰加權(quán)最小二乘問(wèn)題的解決,這個(gè)問(wèn)題可以平滑參數(shù)估計(jì)GCV或UBRE所使用的事實(shí)。最終,在大多數(shù)情況

50、下,兩個(gè)模型參數(shù)的估計(jì)和平滑參數(shù)估計(jì)值的收斂。 (2)或者的P-IRLS計(jì)劃的迭代收斂,為每個(gè)審判平滑參數(shù),GCV,UBRE或REML分?jǐn)?shù)的評(píng)價(jià)收斂 - “外部”是的P-IRLS循環(huán)的優(yōu)化:在本情況下,P-IRLS迭代以加以區(qū)分,以方便優(yōu)化,和gam.fit3被用于代替gam.fit。默認(rèn)的是第二種方法,外部循環(huán)。Several alternative basis-penalty typesare built in for representing model smooths, but alternatives can easily be added (see smooth.termsfor

51、an overview and smooth.construct for how to add smooth classes). In practice thedefault basis is usually the best choice, but the choice of the basis dimension (k in thes and te terms) is something that should be considered carefully (the exact value is not critical, but it is important not to make

52、it restrictively small, nor very large and putationally costly). The basis shouldbe chosen to be larger than is believed to be necessary to approximate the smooth function concerned.The effective degrees of freedom for the smooth will then be controlled by the smoothing penalty onthe term, and (usua

53、lly) selected automatically (with an upper limit set by k-1 or occasionally k). Of coursethe k should not be made too large, or putation will be slow (or in extreme cases there will be morecoefficients to estimate than there are data).幾種可供選擇的依據(jù),處罰類(lèi)型建立模型平滑,但替代品可以很容易地添加(見(jiàn)smooth.terms的概述和smooth.constru

54、ct如何添加平滑的類(lèi))。在實(shí)踐中,默認(rèn)的基礎(chǔ)通常是最好的選擇,但選擇的基礎(chǔ)尺寸(ks和te條款)的東西,應(yīng)該仔細(xì)考慮(確切值不是關(guān)鍵的,但重要的是不要使它限定小,也不是非常大的和計(jì)算昂貴)。應(yīng)選擇的基礎(chǔ)上,要大于被認(rèn)為是必要的近似的平滑函數(shù)有關(guān)。將被控制的有效程度的自由的順利平滑的術(shù)語(yǔ)刑罰,和(通常情況下)自動(dòng)選擇(上限設(shè)定k-1或偶爾k)。當(dāng)然,k不應(yīng)該過(guò)大,或計(jì)算將是緩慢的(或在極端的情況下,將會(huì)有更多的系數(shù)估計(jì)比有數(shù)據(jù))。Note that gam assumes a very inclusive definition of what counts as a GAM:basically

55、any penalized GLM can be used: to this end gam allows the non smooth modelponents to be penalized via argument paraPen and allows the linear predictor to depend ongeneral linear functionals of smooths, via the summation convention mechanism described inlinear.functional.terms.請(qǐng)注意,gam承擔(dān)的最重要的一個(gè)GAM一個(gè)很大

56、的包容性的定義:基本上,可用于任何處罰GLM:為此gam允許非光滑模型組件被處罰通過(guò)參數(shù)paraPen和允許的線(xiàn)性預(yù)測(cè)依賴(lài)上一般線(xiàn)性泛函的平滑,通過(guò)的求和約定機(jī)制,在linear.functional.terms。Details of the default underlying fitting methods are given in Wood (2011 and 2004). Some alternative methods are discussed in Wood (2000 and 2006).相關(guān)擬合方法的默認(rèn)木材(2011年和2004年)。一些替代方法進(jìn)行了探討伍德(2000年至

57、2006年)。gam() is not a clone of Trevor Hasties oroginal (as supplied in S-PLUS or package gam) The major differences are (i) that by default estimation of the degree of smoothness of model terms is part of model fitting, (ii) a Bayesian approach to variance estimation is employed that makes for easie

58、r confidence interval calculation (with good coverage probabilities), (iii) that the model can depend on any (bounded) linear functional of smooth terms, (iv) the parametric part of the model can be penalized,(v) simple random effects can be incorporated, and(vi) the facilities for incorporating smo

59、oths of more than one variable are different: specifically there are no lo smooths, but instead (a) s terms can have more than one argument, implying an isotropic smooth and (b) te or t2 smooths are provided as an effective means for modelling smooth interactions of any number of variables via scale

60、 invariant tensor product smooths. Splines on the sphere, Duchon splinesand Gaussian Markov Random Fields are also available. See gamfrom package gam, for GAMs via the original Hastie and Tibshirani approach.gam()是不是克隆的特雷弗黑斯蒂的oroginal(提供S-PLUS或包GAM)的主要區(qū)別是:(i)默認(rèn)情況下,估計(jì)模型的平滑程度是模型擬合,( II)的方差估計(jì)采用貝葉斯方法,使得

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論