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

R语言 RMark包 make.mark.model()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-26 23:43:34 | 显示全部楼层 |阅读模式
make.mark.model(RMark)
make.mark.model()所属R语言包:RMark

                                        Create a MARK model for analysis
                                         创建一个MARK分析模型

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

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

Creates a MARK model object that contains a MARK input file with PIMS and design matrix specific to the data and model structure and formulae specified for the model parameters.
创建一个的MARK模型对象PIMS和特定的数据和模型结构的模型参数和公式的设计矩阵,它包含一个标记输入文件。


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


  make.mark.model(data, ddl, parameters = list(),
    title = "", model.name = NULL, initial = NULL,
    call = NULL, default.fixed = TRUE, options = NULL,
    profile.int = FALSE, chat = NULL, simplify = TRUE,
    input.links = NULL, parm.specific = FALSE,
    mlogit0 = FALSE, threads = -1, hessian = FALSE)



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

参数:data
Data list resulting from function process.data
数据列表中产生函数process.data的


参数:ddl
Design data list from function make.design.data
设计数据列表从函数make.design.data


参数:parameters
List of parameter formula specifications
参数计算公式规格列表


参数:title
Title for the analysis (optional)
分析的标题(可选)


参数:model.name
Model name to override default name (optional)
产品型号名称覆盖默认的名称(可选)


参数:initial
Vector of named or unnamed initial values for beta parameters or previously run model (optional)
向量的有名或无名的测试参数的初始值或运行模式(可选)


参数:call
Pass function call when this function is called from another function (e.g.mark) (internal use)
通过函数调用时,这个函数被调用另一个函数(如:mark)(内部使用)


参数:default.fixed
if TRUE, real parameters for which the design data have been deleted are fixed to default values
如果为TRUE,该设计数据已被删除的实参数被固定为默认值


参数:options
character string of options for Proc Estimate statement in MARK .inp file
MARK。inp文件中的:PROC估计声明的字符串


参数:profile.int
if TRUE, requests MARK to compute profile intervals
如果为TRUE,请求标记来计算个人资料的时间间隔


参数:chat
pre-specified value for chat used by MARK in calculations of model output
使用MARK聊天预先指定的值计算模型输出


参数:simplify
if FALSE, does not simplify PIM structure
如果为FALSE,并没有简化PIM结构


参数:input.links
specifies set of link functions for parameters with non-simplified structure
指定的链接功能设置的参数与非简化结构


参数:parm.specific
if TRUE, forces a link to be specified for each parameter
如果为真,为每个参数指定的链接


参数:mlogit0
if TRUE, any real parameter that is fixed to 0 and has an mlogit link will have its link changed to logit so it can be simplified
如果为TRUE,任何真正的参数,该参数被固定为0,并具有一个mlogit链路将其链接改为罗吉特,以便它可以简化


参数:threads
number of cpus to use with mark.exe if positive or number of cpus to remain idle if negative
数量的CPU使用与mark.exe,如为正数或CPU的数量保持空闲状态,如果负


参数:hessian
if TRUE specifies to MARK to use hessian rather than second partial matrix
如果是TRUE指定标志的使用麻袋,而不是第二部分矩阵


Details

详细信息----------Details----------

This function is called by mark to create the model but it can be called directly to create but not run the model.  All of the arguments have default values except for the first 2 that specify the processed data list (data) and the design data list (ddl). If only these 2 arguments are specified default models are used for the parameters.  For example, following with the example from process.data and make.design.data, the default model can be created with:
此功能称为mark创建模型,但它可以直接调用来创建,但不能运行的模型。所有的参数有默认值,除了第2,指定处理过的数据列表(data)和设计数据列表(ddl)。如果只有这2个参数指定默认的模型中使用的参数。例如,下面的例子process.data和make.design.data,默认的模型可以创建:

mymodel=make.mark.model(proc.example.data,ddl)
mymodel=make.mark.model(proc.example.data,ddl)

The call to make.mark.model creates a model object but does not do the analysis.  The function returns a list that includes several fields including a design matrix and the MARK input file that will be used with MARK.EXE to run the analysis from function run.mark.model. The following shows the names of the list elements in mymodel:
调用make.mark.model创建了一个模型对象,但不会做了分析。该函数返回一个列表,其中包括几个领域,包括设计矩阵和MARK输入文件将被使用MARK.EXE从功能run.mark.model的运行分析。下图显示了在mymodel的列表元素的名称:


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

model: a MARK object except for the elements output and results. See mark for a detailed description of the list contents.
模型:MARK对象,除了元素output和results。见mark列表中的内容进行了详细描述。


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



Jeff Laake




参见----------See Also----------

process.data,make.design.data, run.mark.model mark
process.data,make.design.data,run.mark.modelmark


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



data(dipper)
#[]
# Process data[过程数据]
#[]
dipper.processed=process.data(dipper,groups=("sex"))
#[]
# Create default design data[创建默认的设计数据]
#[]
dipper.ddl=make.design.data(dipper.processed)
#[]
# Add Flood covariates for Phi and p that have different values[加入洪水的协变量披和p有不同的价值观]
#[]
dipper.ddl$Phi$Flood=0
dipper.ddl$Phi$Flood[dipper.ddl$Phi$time==2 | dipper.ddl$Phi$time==3]=1
dipper.ddl$p$Flood=0
dipper.ddl$p$Flood[dipper.ddl$p$time==3]=1
#[]
#  Define range of models for Phi[定义范围内的车型披]
#[]
Phidot=list(formula=~1)
Phitime=list(formula=~time)
PhiFlood=list(formula=~Flood)
#[]
#  Define range of models for p[定义范围内的车型为p]
#[]
pdot=list(formula=~1)
ptime=list(formula=~time)
#[]
# Make assortment of models[各种各样的模型]
#[]
dipper.phidot.pdot=make.mark.model(dipper.processed,dipper.ddl,
  parameters=list(Phi=Phidot,p=pdot))
dipper.phidot.ptime=make.mark.model(dipper.processed,dipper.ddl,
  parameters=list(Phi=Phidot,p=ptime))
dipper.phiFlood.pdot=make.mark.model(dipper.processed,dipper.ddl,
  parameters=list(Phi=PhiFlood, p=pdot))


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-4-19 17:28 , Processed in 0.023587 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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