-4

我正在使用包gs中提供的功能bnlearndput(gs)如下提供。

function (x, cluster = NULL, whitelist = NULL, blacklist = NULL, 
    test = NULL, alpha = 0.05, B = NULL, debug = FALSE, optimized = TRUE, 
    strict = FALSE, undirected = FALSE) 
{
    bnlearn(x = x, cluster = cluster, whitelist = whitelist, 
        blacklist = blacklist, test = test, alpha = alpha, B = B, 
        debug = debug, optimized = optimized, strict = strict, 
        undirected = undirected)
}

我想知道如何改变gs以适合我自己的需要。例如,我想将alpha值从 0.05 增加到 0.15。

4

1 回答 1

4

这些只是默认值,因此您可以gs(x)在不指定其他参数的情况下调用。要修改 alpha,只需执行以下操作:

gs(x, alpha=0.15)
于 2013-08-05T02:52:49.797 回答