factor.scope(stats)
factor.scope()所属R语言包:stats
Compute Allowed Changes in Adding to or Dropping from a Formula
在添加或删除公式计算允许的更改
译者:生物统计家园网 机器人LoveR
描述----------Description----------
add.scope and drop.scope compute those terms that can be individually added to or dropped from a model while respecting the hierarchy of terms.
add.scope和drop.scope计算可以单独添加到或从一个模型下降,同时尊重层次的条款的条款。
用法----------Usage----------
add.scope(terms1, terms2)
drop.scope(terms1, terms2)
factor.scope(factor, scope)
参数----------Arguments----------
参数:terms1
the terms or formula for the base model.
示范基地的条款或公式。
参数:terms2
the terms or formula for the upper (add.scope) or lower (drop.scope) scope. If missing for drop.scope it is taken to be the null formula, so all terms (except any intercept) are candidates to be dropped.
上(add.scope)或更低(drop.scope)范围内的条款或公式。如果缺少drop.scope它是空的公式,因此所有条款(除任何拦截)是被丢弃的候选人。
参数:factor
the "factor" attribute of the terms of the base object.
"factor"属性的基本对象的条款。
参数:scope
a list with one or both components drop and add giving the "factor" attribute of the lower and upper scopes respectively.
与一个或两个组件列表drop和add给"factor"的上下范围的属性。
Details
详情----------Details----------
factor.scope is not intended to be called directly by users.
factor.scope不拟由用户直接调用。
值----------Value----------
For add.scope and drop.scope a character vector of terms labels. For factor.scope, a list with components drop and add, character vectors of terms labels.
add.scope和drop.scope的条件标签的特征向量。对于factor.scope,一个组件的列表drop和add,术语标签的特征向量。
参见----------See Also----------
add1, drop1,
add1,drop1
举例----------Examples----------
add.scope( ~ a + b + c + a:b, ~ (a + b + c)^3)
# [1] "a:c" "b:c"[[1]“A:C”“B:C”]
drop.scope( ~ a + b + c + a:b)
# [1] "c" "a:b"[[1]“C”“A:B”]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|