R MASS::stepAIC-指定给steps函数参数
有人能解释为什么R中的以下代码会根据R MASS::stepAIC-指定给steps函数参数,r,R,有人能解释为什么R中的以下代码会根据=或不提供名称而给出不同的结果吗 这意味着当你打电话时 stepAIC(quine.nxt, scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1), trace = TRUE, steps <- 6) 因此,由于指定了scope=和trace=,因此6的值将进入scale=参数。所以你写的和 stepAIC(quine.nxt, scope = list(upper = ~Eth*Sex*
=
或
不提供名称而给出不同的结果吗
这意味着当你打电话时
stepAIC(quine.nxt,
scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
trace = TRUE,
steps <- 6)
因此,由于指定了scope=
和trace=
,因此6
的值将进入scale=
参数。所以你写的和
stepAIC(quine.nxt,
scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
trace = TRUE,
6)
stepAIC(quine.nxt,
scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
scale = 6,
trace = TRUE)
这和
stepAIC(quine.nxt,
scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
trace = TRUE,
6)
stepAIC(quine.nxt,
scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
scale = 6,
trace = TRUE)
因此重要的信息是
不提供名称
这意味着当你打电话时
stepAIC(quine.nxt,
scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
trace = TRUE,
steps <- 6)
因此,由于指定了scope=
和trace=
,因此6
的值将进入scale=
参数。所以你写的和
stepAIC(quine.nxt,
scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
trace = TRUE,
6)
stepAIC(quine.nxt,
scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
scale = 6,
trace = TRUE)
这和
stepAIC(quine.nxt,
scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
trace = TRUE,
6)
stepAIC(quine.nxt,
scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
scale = 6,
trace = TRUE)
所以重要的信息是