simstats0c(RSiena)
simstats0c()所属R语言包:RSiena
Versions of FRAN
版本FRAN
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The functions to be called as 'FRAN' by siena07. They call compiled C++.
该功能被称为“弗兰的siena07。他们称之为编译的C + +。
用法----------Usage----------
simstats0c(z, x, data=NULL, effects=NULL, fromFiniteDiff=FALSE,
returnDeps=FALSE, returnChains=FALSE, byWave=FALSE,
returnDataFrame=FALSE, returnLoglik=FALSE)
maxlikec(z, x, data=NULL, effects=NULL,
returnChains=FALSE, byGroup = FALSE, byWave=FALSE,
returnDataFrame=FALSE, returnLoglik=FALSE,
onlyLoglik=FALSE)
initializeFRAN(z, x, data, effects, prevAns = NULL, initC,
profileData = FALSE, returnDeps = FALSE, returnChains =
FALSE, byGroup = FALSE, returnDataFrame = FALSE,
byWave = FALSE, returnLoglik = FALSE, onlyLoglik = FALSE)
terminateFRAN(z, x)
参数----------Arguments----------
参数:z
Control object, passed in automatically in siena07.
控制对象,通过自动siena07。
参数:x
Model object, passed in automatically in siena07.
模型对象,通过自动siena07。
参数:data
A sienaData object as returned by sienaDataCreate.
一个sienaData对象返回的sienaDataCreate。
参数:effects
A sienaEffects object as returned by getEffects.
一个sienaEffects对象作为返回getEffects的。
参数:fromFiniteDiff
Boolean used during calculation of derivatives by finite differences. Not for user use.
布尔用有限差分计算过程中使用的衍生工具。不适合用户使用。
参数:returnDeps
Boolean. Whether to return the simulated networks in Phase 3.
布尔值。是否返回在第3阶段的模拟网络。
参数:returnChains
Boolean. Whether to return the chains.
布尔值。是否返回链。
参数:byWave
Boolean. Whether to return the finite difference or maximum likelihood derivatives by wave (uses a great deal of memory). Only necessary for sienaTimeTest
布尔值。是否返回的有限差分法或最大似然衍生物波(使用了大量的内存)。只需要为sienaTimeTest
参数:byGroup
Boolean. For internal use: allows different thetas for each group to be used in bayes.
布尔值。仅供内部使用:允许不同thetas各组中使用的bayes。
参数:returnDataFrame
Boolean. Whether to return the chains as lists or data frames.
布尔值。是否返回链条,列表或数据框。
参数:returnLoglik
Boolean. Whether to return the log likelihood of the simulated chain.
布尔值。是否返回模拟链的对数似然。
参数:onlyLoglik
Boolean: whether to return just the likelihood for the simulated chain, plus details of steps accepted and rejected.
布尔:是否只返回的模拟链的可能性,再加上接受和拒绝的步骤。
参数:prevAns
An object of class "sienaFit" as returned by siena07, from which scaling information (derivative matrix and standard deviation of the deviations) will be extracted along with the latest version of the parameters which will be used as the initial values, unless the model requests the use of standard initial values. If the previous model is exactly the same as the current one, Phase 1 will be omitted. If not, any parameter estimates for effects which are included in the new model will be used as initial values, but phase 1 will still be carried out. If the results used as prevAns are a reasonable starting point, this will increase the efficiency of the algorithm.
一个对象的类“sienaFit”经由siena07,从该定标信息(导数矩阵和的偏差的标准偏差)将沿与最新版本的参数的初始值将被用来作为萃取,除非模型请使用标准的初始值。如果先前的模式是完全一样的,则当前1期,将被省略。如果没有任何参数估计的影响,其中包括在新模式将被用作初始值,但仍然会进行第1阶段。如果结果作为prevAns是一个合理的起点,这将提高工作效率的算法。
参数:initC
If TRUE, call is to setup the data and model in C++. For use with multiple processes only.
如果为True,则调用设置数据和模型在C + +。对于使用多个进程。
参数:profileData
Boolean to force dumping of the data for profiling with sienaProfile.exe.
布尔强制倾倒的数据分析与sienaProfile.exe。
Details
详细信息----------Details----------
The name of simstats0c or maxlikec should be used for the element FRAN of the model object, the former when using estimation by forward simulation, the latter for maximum likelihood estimation. The arguments with no defaults must be passed in on the call to siena07. initializeFRAN and terminateFRAN are called in both cases. initializeFRAN is also called in bayes
的名称simstats0c或maxlikec应使用FRAN的模型对象,前者的元素时,使用估计的正演模拟,后者的最大似然估计。没有默认值的参数必须通过调用siena07。 initializeFRAN和terminateFRAN在这两种情况下调用。 initializeFRAN也被称为bayes
值----------Value----------
simstats0c returns a list containing:
simstats0c返回一个列表,其中包含:
参数:fra
Simulated statistics.
模拟统计信息。
参数:sc
Scores with which to calculate the derivative (not phase 2 or if using finite differences or maximum likelihood).
成绩计算的导数(第2阶段,或如果用有限差分法或最大似然)。
参数:dff
Contributions to the derivative if finite differences
如果有限差分法对衍生工具的贡献
参数:ntim
For conditional processing, time taken.
对于有条件的处理,所需的时间。
参数:feasible
Currently set to TRUE.
当前设置为TRUE。
参数:OK
Could be set to FALSE if serious error has occurred.
可以设置为false,如果发生严重的错误。
参数:sims
A list of simulation results, one for each period. Each list consists of a list for each data object, each of which consists of a list for each network, each of which consists of a list for each period, each component of which is an edgelist in matrix form (the columns are from, to, value) (or vector for behavior variables). Only if returnDeps is TRUE.
的模拟结果的列表,每个周期一个。每个列表包括每个数据对象的列表,其中每个包括为每个网络的列表,每一个都包含一个列表的每个周期,这是一个EdgeList,在该列表中以矩阵形式(列是从,每个组件,值)(或行为变量的向量)。只有returnDeps是TRUE。
maxlikec returns a list containing:
maxlikec返回一个列表,其中包含:
参数:fra
Simulated scores.
模拟分数。
参数:dff
Simulated Hessians: stored as lower triangular matrices
模拟粗麻布存储为下三角矩阵
参数:ntim
NULL, compatibility only
NULL,兼容性
参数:feasible
Currently set to TRUE.
当前设置为TRUE。
参数:OK
Could be set to FALSE if serious error has occurred.
可以设置为false,如果发生严重的错误。
参数:dff
Simulated Hessian
模拟黑森州
参数:sims
NULL, for compatibility only
NULL,只是为了兼容
参数:chain
A list of sampled chains, one for each period. Each list consists of a list for each data object, each of which consists of a list for each network, each of which consists of a list for each period, each component of which is a list or a data frame depending on the value of returnDataFrame. Only if returnChainss is TRUE.
采样链的列表,每个周期一个。每个列表包括每个数据对象的列表,其中每个包括为每个网络的列表,每一个都包含一个列表的每个周期中,每个组件是一个列表或一个数据框的值取决于returnDataFrame。只有returnChainss是TRUE。
参数:accepts
Number of accepted MH steps by dependent variable (permute steps are counted under first dependent variable)
第一个因变量因变量(表,改变步骤公认的MH步骤数算下)
参数:rejects
Number of rejected MH steps by dependent variable (permute steps are counted under first dependent variable)
被拒绝的的MH步骤的因变量(表,改变步骤的数量计算在第一个因变量)
参数:aborts
Number of aborted MH steps counted under first dependent variable.
中止MH下计算步骤,第一个因变量的数目。
参数:loglik
Loglikelihood of the simulations. Only if returnLoglik is TRUE. If onlyLoglik is TRUE, only loglik, accepts,rejects and aborts are returned.
的模拟loglikelihood。只有returnLoglik是TRUE。如果onlyLoglik是TRUE,只有loglik,accepts,rejects和aborts返回。
initializeFRAN and terminateFRAN return the control object z.
initializeFRAN和terminateFRAN返回控制对象z。
(作者)----------Author(s)----------
Ruth Ripley
参考文献----------References----------
<h3>See Also</h3>
实例----------Examples----------
mynet1 <- sienaNet(array(c(tmp3, tmp4), dim=c(32, 32, 2)))
mydata <- sienaDataCreate(mynet1)
myeff <- getEffects(mydata)
myeff <- includeEffects(myeff, transTrip)
mymodel <- sienaModelCreate(nsub=2, n3=100)
ans <- siena07(mymodel, data=mydata, effects=myeff, batch=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|