LogLike(spatcounts)
LogLike()所属R语言包:spatcounts
Individual log-likelihood
个人对数似然
译者:生物统计家园网 机器人LoveR
描述----------Description----------
'LogLike' calculates the individual log-likelihood which is needed for 'Clarketest' and 'Vuongtest'.
“LogLike计算个人log这是需要”Clarketest“和”Vuongtest“的可能性。
用法----------Usage----------
LogLike(Yin, fm.X, region, regmodel, thinning = 1, burnin = 1)
参数----------Arguments----------
参数:Yin
response vector of length n.
长度为n的响应矢量。
参数:fm.X
formula for mean design.
平均设计公式。
参数:region
region of each observation.
每个观测区域。
参数:regmodel
the output of model fits obtained by using 'est.sc'.
适合的输出模式得到使用“est.sc”。
参数:thinning
number of MCMC iterations between two writing steps (if thinning=1 (default), all states are calculated whereas if e.g. thinning=10 only each 10 iteration is calculated)
如果细化= 1(默认),所有国家的两个写作步骤(MCMC迭代计算,而如果例如细化为10只,每10迭代计算)
参数:burnin
number of steps dropped from the chain to allow for a burn-in phase. Defaults to 1.
数下降从链的步骤,以允许一个老化阶段。默认为1。
值----------Value----------
<table summary="R valueblock"> <tr valign="top"><td>ll </td> <td> is a matrix of dimension (n x (totalit+2)), where each column represents one iteration and contains the likelihood contributions of each observation.</td></tr> </table>
<table summary="R valueblock"> <tr valign="top"> <TD> ll </ TD> <TD>是一个矩阵的尺寸(NX(2 totalit)),其中每一列代表一个迭代的可能性,并包含每个观测的贡献。</ TD> </ TR> </表>
实例----------Examples----------
data(sim.Yin)
data(sim.fm.X)
data(sim.region)
data(sim.gmat)
data(sim.nmat)
poi <- est.sc(sim.Yin, ~1+sim.fm.X[,1]+sim.fm.X[,2], sim.region,
model="Poi", sim.gmat, sim.nmat, 3)
ll.poi <- LogLike(sim.Yin, ~1+sim.fm.X[,1]+sim.fm.X[,2], sim.region, poi)
# log likelihood for the single iterations[单次迭代的对数似然]
apply(ll.poi$ll,2,sum)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|