spml(splm) spml()所屬R語(yǔ)言包:splm Spatial Panel Model by Maximum Likelihood 空間面板模型的最大似然法(Maximum Likelihood) 譯者:生物統(tǒng)計(jì)家園網(wǎng) 機(jī)器人LoveR 描述----------Description---------- Maximum likelihood (ML) estimation of spatial panel models, possibly with fixed or random effects. 的空間面板模型的最大似然(ML)估計(jì),可能有固定或隨機(jī)效應(yīng)。 用法----------Usage---------- spml(formula, data, index = NULL, listw, listw2=listw, model=c("within","random","pooling"), effect=c("individual","time","twoways"), lag=FALSE, spatial.error=c("b","kkp","none"), ...) 參數(shù)----------Arguments---------- 參數(shù):formula a symbolic description of the model to be estimated 以進(jìn)行估計(jì)的模型的符號(hào)描述 參數(shù):data an object of class data.frame or pdata.frame. A data frame containing the variables in the model. When the object is a data.frame, the first two columns shall contain the indexes, unless otherwise specified. See index 對(duì)象的類data.frame或pdata.frame。一個(gè)數(shù)據(jù)框包含在模型中的變量。當(dāng)對(duì)象是一個(gè)data.frame,前兩列應(yīng)包含索引,除非另有規(guī)定。見(jiàn)index 參數(shù):index if not NULL (default), a character vector to identify the indexes among the columns of the data.frame 如果不為NULL(默認(rèn)值),字符向量確定的指標(biāo),各列之間的data.frame 參數(shù):listw an object of class listw or a matrix. It represents the spatial weights to be used in estimation. 一個(gè)對(duì)象的類listw或matrix。它表示將用于估計(jì)的空間權(quán)重。 參數(shù):listw2 an object of class listw or a matrix. Second of set spatial weights for estimation, if different from the first (e.g., in a 'sarar' model). 一個(gè)對(duì)象的類listw或matrix。二,設(shè)定空間權(quán)重估計(jì),如果不同(例如,在“薩拉爾”模型)。 參數(shù):model one of c("within", "random", "pooling"). 1c("within", "random", "pooling"). 參數(shù):effect one of c("individual","time","twoways"); the effects introduced in the model. 1 c("individual","time","twoways");在模型中引入的影響。 參數(shù):lag default=FALSE. If TRUE, a spatial lag of the dependent variable is added. 默認(rèn)值=FALSE。如果TRUE,空間滯后因變量。 參數(shù):spatial.error one of c("b","kkp","none"). The type of spatial error in the specification, if any. See details. 一個(gè)c("b","kkp","none")。的類型,在本說(shuō)明書(shū)中的空間上的錯(cuò)誤,如果有的話。查看詳細(xì)信息。 參數(shù):... additional argument to pass over to other functions 額外的參數(shù)傳遞到其他功能 Details 詳細(xì)信息----------Details---------- The models are estimated by two-step Maximum Likelihood. Further optional parameters to be passed on to the estimator may be: pvar: if TRUE the pvar function is called hess: if TRUE use numerical Hessian instead of GLS for the standard errors of the estimates quiet: if FALSE report function and parameters values during optimization initval: one of c("zeros", "estimate"), the initial values for the parameters. If "zeros" a vector of zeros is used. if "estimate" the initial values are retreived from the estimation of the nested specifications. Alternatively, a numeric vector can be specified. x.tol: Tolerance. See nlminb for details. rel.tol: Relative tolerance. See nlminb for details. 該模型是由兩個(gè)步驟的最大似然估計(jì)。進(jìn)一步通過(guò)可選參數(shù)的估計(jì)可能是:PVAR:如果TRUEpvar函數(shù)被調(diào)用赫斯:如果TRUE使用數(shù)字黑森州,而不是GLS的標(biāo)準(zhǔn)誤差估計(jì)安靜的:如果FALSE報(bào)告功能和參數(shù)值在優(yōu)化過(guò)程中initval的:c("zeros", "estimate"),參數(shù)的初始值。如果"zeros"一個(gè)零向量使用。如果"estimate"的初始值retreived從嵌套規(guī)格估計(jì)。或者,一個(gè)數(shù)值向量可以被指定。 x.tol:寬容。見(jiàn)nlminb的詳細(xì)信息。 rel.tol:相對(duì)寬容。見(jiàn)nlminb的詳細(xì)信息。 值----------Value---------- An object of class "splm". 對(duì)象的類"splm"。 參數(shù):coefficients coefficients estimate of the model parameters 系數(shù)估計(jì)的模型參數(shù) 參數(shù):arcoef the coefficient for the spatial lag on y 系數(shù)空間滯后y, 參數(shù):errcomp the estimates of the error variance components 方差分量估計(jì)的錯(cuò)誤 參數(shù):vcov the asymptotic variance covariance matrix of the estimated coefficients 的漸近方差協(xié)方差矩陣的估計(jì)系數(shù) 參數(shù):vcov.arcoef the asymptotic variance of the estimated spatial lag parameter 的漸近方差的估計(jì)空間滯后參數(shù) 參數(shù):vcov.errcomp the asymptotic variance covariance matrix of the estimated error covariance parameters 的漸近方差協(xié)方差矩陣的估計(jì)誤差協(xié)方差參數(shù) 參數(shù):type 'random effects ML' “隨機(jī)效應(yīng)ML” 參數(shù):residuals the model residuals 模型殘差 參數(shù):fitted.values the fitted values, calculated as \hat{y}=X \hat{β} 擬合值,計(jì)算\hat{y}=X \hat{β} 參數(shù):sigma2 GLS residuals variance GLS殘差方差 參數(shù):model the matrix of the data used 所使用的數(shù)據(jù)的矩陣 參數(shù):call the call used to create the object 用于創(chuàng)建對(duì)象的調(diào)用 參數(shù):logLik the value of the log likelihood function at the optimum 在最適宜的對(duì)數(shù)似然函數(shù)的值 參數(shù):errors the value of the errors argument errors參數(shù)的值 (作者)----------Author(s)---------- Giovanni Millo 參考文獻(xiàn)----------References---------- Testing panel data regression models with spatial and serial error correlation. Journal of Econometrics, 140, 5-51. splm: Spatial Panel Data Models in R. Journal of Statistical Software, 47(1), 1–38. URL http://www./v47/i01/. 參見(jiàn)----------See Also---------- spgm spgm 實(shí)例----------Examples---------- data(Produc, package = "Ecdat") data(usaww) fm <- log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp ## the two standard specifications (SEM and SAR) one with FE[#兩個(gè)標(biāo)準(zhǔn)規(guī)格(掃描電鏡(SEM)和SAR)與FE] ## and the other with RE:[#和其他與RE:] ## fixed effects panel with spatial errors[#固定效應(yīng)面板與空間誤差] fespaterr <- spml(fm, data = Produc, listw = mat2listw(usaww), model="within", spatial.error="b") summary(fespaterr) ## random effects panel with spatial lag[#隨機(jī)效應(yīng)面板與空間滯后] respatlag <- spml(fm, data = Produc, listw = mat2listw(usaww), model="random", spatial.error="none", lag=TRUE) summary(respatlag) 轉(zhuǎn)載請(qǐng)注明:出自 生物統(tǒng)計(jì)家園網(wǎng)(http://www.)。 注: 注1:為了方便大家學(xué)習(xí),本文檔為生物統(tǒng)計(jì)家園網(wǎng)機(jī)器人LoveR翻譯而成,僅供個(gè)人R語(yǔ)言學(xué)習(xí)參考使用,生物統(tǒng)計(jì)家園保留版權(quán)。 注2:由于是機(jī)器人自動(dòng)翻譯,難免有不準(zhǔn)確之處,使用時(shí)仔細(xì)對(duì)照中、英文內(nèi)容進(jìn)行反復(fù)理解,可以幫助R語(yǔ)言的學(xué)習(xí)。 注3:如遇到不準(zhǔn)確之處,請(qǐng)?jiān)诒举N的后面進(jìn)行回帖,我們會(huì)逐漸進(jìn)行修訂。 |
|