mInw | R Documentation |
Extracts, from a background network with optimised weights, the maximum input network with tolerance
mInw(nwTable, intgNone, nodes2link, tol, targets.On)
nwTable |
a background network data frame (from |
intgNone |
a numeric vector of the same length as the number of integrators, that has the "no input" weight for each integrator; this vector should be named (mapping to the integrators names) |
nodesOF |
a list created by |
tol |
a single number between 0 and 1, the relative tolerance around the maximum input edge that we allow (!not to be confused with the optimisation tolerance that is the tolerance used in selecting best models for weights correction at each generation) |
targets.On |
a list of character vectors containing the K/P perturbed under each condition (one condition=one element of the list) |
The maximum input edge is picked based on the "ntag" column of the nwTable
data frame, so it should contain the appropriate values: if we want a standard ntag network, then ntag should be interactions(pknList)
(of the last generation), if we want a frequency based network, then nwTable$ntag
should be opres$FE[match(nwTable$SID, rownames(opres$FE)),dim(opres$FE)[2]]
where opres
is the list resulting from the oRes
function. If we are working with combined optimisations, then the ntag
column should contained the averaged equivalents of the vectors just mentioned.
a data frame of interactions that is a subset of the starting one
C. Terfve
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.