找回密码
 注册
查看: 323|回复: 0

R语言 spdep包 as_dgRMatrix_listw()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:35:10 | 显示全部楼层 |阅读模式
as_dgRMatrix_listw(spdep)
as_dgRMatrix_listw()所属R语言包:spdep

                                        Interface between Matrix class objects and weights lists
                                         接口之间的基类对象和重量名单

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Interface between Matrix class objects and weights lists
接口之间的基类对象和重量名单


用法----------Usage----------


as_dgRMatrix_listw(listw)
as_dsTMatrix_listw(listw)
as_dsCMatrix_I(n)
as_dsCMatrix_IrW(W, rho)
Jacobian_W(W, rho)



参数----------Arguments----------

参数:listw
a listw object created for example by nb2listw
例如创建一个listw对象的nb2listw


参数:W
a dsTMatrix object created using as_dsTMatrix_listw from a symmetric listw object
一个dsTMatrix使用as_dsTMatrix_listw对称的listw对象创建的对象


参数:rho
spatial regression coefficient
空间回归系数


参数:n
length of diagonal for identity matrix
对角线长度为单位矩阵


值----------Value----------

Matrix package class objects
矩阵封装类对象


(作者)----------Author(s)----------


Roger Bivand



实例----------Examples----------


example(NY_data)
W <- as_dsTMatrix_listw(listw_NY)
I <- as_dsCMatrix_I(dim(W)[1])
W <- as(W, "CsparseMatrix")
rho <- 0.1
c(determinant(I - rho * W, logarithm=TRUE)$modulus)
sum(log(1 - rho * eigenw(listw_NY)))
n <- dim(W)[1]
nW <- - W
nChol <- Cholesky(nW, Imult=8)
.f <- if(package_version(packageDescription("Matrix")$Version) >
           "0.999375-30") 2 else 1
n * log(rho) + (.f * c(determinant(update(nChol, nW, 1/rho))$modulus))
rho <- seq(0.01, 0.1, 0.01)
n * log(rho) + Matrix:::ldetL2up(nChol, nW, 1/rho)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-18 00:25 , Processed in 0.022294 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表