choose_int.nl: Get intervention values

Description Usage Arguments Examples

View source: R/choose_int.nl.R

Description

Computes the most useful intervention according to any desired function. Does not require likelihoods to be preloaded as it uses indi_li to compute these on the fly

Usage

1
choose_int.nl(DAGs, int_opts, prior, sar, pow, FUN, ...)

Arguments

DAGs

an array where every slice is the next graph matrix in the hypothesis space

int_opts

the available interventions in a maatrix where each row is an intervention 1 is on, -1 is off, 0 is free

prior

the prior distribution over graphs

sar

spontaneous activation rate

pow

power of causal links

FUN

the function to use to evaluate the intervention options relative to the hypothesis space and prior

Examples

1
2
3
int_opts<-as.matrix(expand.grid(rep(list(0:2), 3)))
int_opts[int_opts==2]<--1
out<-choose_int.nl(DAGs_3, int_opts, prior('random',25), .1, .8, shannon_entropy)

neilbramley/acl_source documentation built on May 29, 2019, 6:53 p.m.