coef.lmList(nlme)
coef.lmList()所属R语言包:nlme
Extract lmList Coefficients
提取lmList系数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The coefficients of each lm object in the object list are extracted and organized into a data frame, with rows corresponding to the lm components and columns corresponding to the coefficients. Optionally, the returned data frame may be augmented with covariates summarized over the groups associated with the lm components.
lm列表中的每个object对象系数提取,并组织成一个数据框,行相应的lm组件和相应的系数列。可选可增强与lm组件关联的群体,总结协变量,返回的数据框。
用法----------Usage----------
## S3 method for class 'lmList'
coef(object, augFrame, data, which, FUN,
omitGroupingFactor, ...)
参数----------Arguments----------
参数:object
an object inheriting from class lmList, representing a list of lm objects with a common model.
从类继承的对象lmList,lm对象代表一个共同的模式列表。
参数:augFrame
an optional logical value. If TRUE, the returned data frame is augmented with variables defined in the data frame used to produce object; else, if FALSE, only the coefficients are returned. Defaults to FALSE.
一个可选的逻辑值。如果TRUE的,返回的数据框是用于生产的数据框中定义的变量扩充object;否则,如果FALSE,只返回系数。 FALSE默认。
参数:data
an optional data frame with the variables to be used for augmenting the returned data frame when augFrame = TRUE. Defaults to the data frame used to fit object.
一个可选的数据框的变量将用于充实返回的数据框时augFrame = TRUE。默认为数据框,使用适合object。
参数:which
an optional positive integer or character vector specifying which columns of the data frame used to produce object should be used in the augmentation of the returned data frame. Defaults to all variables in the data.
一个可选的正整数或字符向量指定列的数据框用于生产object应在返回的数据框的增强。在数据的所有变量的默认值。
参数:FUN
an optional summary function or a list of summary functions to be applied to group-varying variables, when collapsing the data by groups. Group-invariant variables are always summarized by the unique value that they assume within that group. If FUN is a single function it will be applied to each non-invariant variable by group to produce the summary for that variable. If FUN is a list of functions, the names in the list should designate classes of variables in the frame such as ordered, factor, or numeric. The indicated function will be applied to any group-varying variables of that class. The default functions to be used are mean for numeric factors, and Mode for both factor and ordered. The Mode function, defined internally in gsummary, returns the modal or most popular value of the variable. It is different from the mode function that returns the S-language mode of the variable.
一个可选的汇总函数或摘要功能被应用到不同组的变量,倒塌组数据时的名单。集团不变的变量总是总结了独特的价值,他们在该组承担。 FUN如果是一个单一的功能,将应用于组每个非不变的变量,该变量为生产总结。如果FUN是一个功能列表,列表中的名称应指定类的变量,如ordered,factor或numeric帧。指定的函数将被应用到这个类的任何组不同的变量。要使用的默认功能是mean数字因素,Mode都factor和ordered。 Mode函数内部定义在gsummary,返回变量的模式或最流行的价值。它mode函数返回变量的S-语言模式是不同的。
参数:omitGroupingFactor
an optional logical value. When TRUE the grouping factor itself will be omitted from the group-wise summary of data but the levels of the grouping factor will continue to be used as the row names for the returned data frame. Defaults to FALSE.
一个可选的逻辑值。当TRUE分组因素本身将被省略组明智总结data但分组因素的水平,将继续使用返回的数据框的行名。 FALSE默认。
参数:...
some methods for this generic require additional arguments. None are used in this method.
这个通用的一些方法需要额外的参数。没有使用这种方法。
值----------Value----------
a data frame inheriting from class coef.lmList with the estimated coefficients for each lm component of object and, optionally, other covariates summarized over the groups corresponding to the lm components. The returned object also inherits from classes ranef.lmList and data.frame.
一个数据框从类继承coef.lmList每lm,并选择性地总结了相应的object组件组的其他变项的组件lm的估计系数。返回的对象也继承自类ranef.lmList和data.frame。
作者(S)----------Author(s)----------
Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>
参考文献----------References----------
and S-PLUS, Springer, New York, esp. pp. 457-458.
参见----------See Also----------
lmList, fixed.effects.lmList, ranef.lmList,
lmList,fixed.effects.lmList,ranef.lmList
举例----------Examples----------
fm1 <- lmList(distance ~ age|Subject, data = Orthodont)
coef(fm1)
coef(fm1, augFrame = TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|