Skip to content

[R--gR] banlist

1 message · Sam Steingold

#
If I have several nodes (like "sex" and "year" in the "ksl" example)
that are known to be independent of the others and some other nodes that
are known not to influence anything, is there a simple way to specify
those edges by name?
E.g., something like
banlist(net) <-
 CONCATENATE(
  matrix(c(rep(POSITION(sex,ksl),length(ksl)-1),
           1:length(ksl)[1:length(ksl) <> POSITION(sex,ksl)]),
         ncol=2),
  matrix(c(rep(POSITION(year,ksl),length(ksl)-1),
           1:length(ksl)[1:length(ksl) <> POSITION(year,ksl)]),
         ncol=2)
 )

except that I don't know how to implement POSITION and CONCATENATE.

Thanks!


PS Thanks to Susanne for answering my previous question about <NA>.
   Are there plans to support them in the future?