varConstPower(nlme)
varConstPower()所属R语言包:nlme
Constant Plus Power Variance Function
不断加功率方差函数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function is a constructor for the varConstPower class, representing a constant plus power variance function structure. Letting v denote the variance covariate and s2(v) denote the variance function evaluated at v, the constant plus power variance function is defined as s2(v) = (t1 + |v|^t2)^2, where t1, t2 are the variance function coefficients. When a grouping factor is present, different t1, t2 are used for each factor level.
此功能一个varConstPower类代表一个常量加电源方差函数的结构,构造。让v表示协方差和s2(v)表示方差函数评估在v,不断加电源方差函数定义为s2(v) = (t1 + |v|^t2)^2“,其中t1, t2是方差函数系数。当一个分组因素是,不同的t1, t2是用来为每个因子水平。
用法----------Usage----------
varConstPower(const, power, form, fixed)
参数----------Arguments----------
参数:const, power
optional numeric vectors, or lists of numeric values, with, respectively, the coefficients for the constant and the power terms. Both arguments must have length one, unless a grouping factor is specified in form. If either argument has length greater than one, it must have names which identify its elements to the levels of the grouping factor defined in form. If a grouping factor is present in form and the argument has length one, its value will be assigned to all grouping levels. Only positive values are allowed for const. Default is numeric(0), which results in a vector of zeros of appropriate length being assigned to the coefficients when object is initialized (corresponding to constant variance equal to one).
可选的数字向量,或数值的列表,分别为恒功率系数。两个参数长度必须为1,除非在form指定分组因素。如果任一参数的长度大于一,它必须有form定义分组因素水平确定其元素的名称。如果一个分组因素是目前在form的说法有一个长度,其价值将被分配到所有分组级别。只允许正值const。默认是的numeric(0),这导致一个系数时object初始化被分配到适当的长度为零的向量(对应常数方差等于一)。
参数:form
an optional one-sided formula of the form ~ v, or ~ v | g, specifying a variance covariate v and, optionally, a grouping factor g for the coefficients. The variance covariate must evaluate to a numeric vector and may involve expressions using ".", representing a fitted model object from which fitted values (fitted(.)) and residuals (resid(.)) can be extracted (this allows the variance covariate to be updated during the optimization of an object function). When a grouping factor is present in form, a different coefficient value is used for each of its levels. Several grouping variables may be simultaneously specified, separated by the * operator, as in ~ v | g1 * g2 * g3. In this case, the levels of each grouping variable are pasted together and the resulting factor is used to group the observations. Defaults to ~ fitted(.) representing a variance covariate given by the fitted values of a fitted model object and no grouping factor.
可选片面公式的形式~ v或~ v | g,指定方差协v“,可以选择,分组因素g系数。协方差必须评估一个数值向量,并使用".",代表拟合模型拟合值(fitted(.))残差(resid(.))可以被提取的对象,从中(这可能涉及表达允许方差协将在目标函数的优化更新)。当一个分组的因素是目前在form,不同系数的值用于每个级别。可以同时指定几个分组变量,*,~ v | g1 * g2 * g3运营商分离。在这种情况下,每个分组变量的水平都粘在一起,由此产生的因素是用来组的意见。默认为~ fitted(.)代表方差协变量的拟合模型对象,并没有分组因素的拟合值。
参数:fixed
an optional list with components const and/or power, consisting of numeric vectors, or lists of numeric values, specifying the values at which some or all of the coefficients in the variance function should be fixed. If a grouping factor is specified in form, the components of fixed must have names identifying which coefficients are to be fixed. Coefficients included in fixed are not allowed to vary during the optimization of an objective function. Defaults to NULL, corresponding to no fixed coefficients.
可选组件列表const和/或power,包括数字向量,或数值的列表,指定其中的部分或全部方差函数的系数应该是固定的值。如果一个分组因素中指定form,fixed组件必须有确定哪些系数是固定的名称。系数包括fixed不允许不同的目标函数的优化过程中的。默认NULL,没有固定的系数。
值----------Value----------
a varConstPower object representing a constant plus power variance function structure, also inheriting from class varFunc.
一个varConstPower对象代表一个常量加电源方差函数的结构,也继承类varFunc。
作者(S)----------Author(s)----------
Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>
参考文献----------References----------
in S and S-PLUS", Springer.
参见----------See Also----------
varClasses, varWeights.varFunc,
varClasses,varWeights.varFunc
举例----------Examples----------
vf1 <- varConstPower(1.2, 0.2, form = ~age|Sex)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|