Description Usage Arguments Value Methods (by class) Examples
ghype is used to fit gHypEG models when the propensity matrix is known. It can be used to estimate a null model (soft configuration model), or the benchmark 'full-model', where the propensity matrix is fitted such that the expected graph from the fitted model is the one passed to the function.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | ghype(
graph,
directed,
selfloops,
xi = NULL,
omega = NULL,
unbiased = FALSE,
regular = FALSE,
...
)
## S3 method for class 'matrix'
ghype(
graph,
directed,
selfloops,
xi = NULL,
omega = NULL,
unbiased = FALSE,
regular = FALSE,
...
)
## Default S3 method:
ghype(
graph,
directed,
selfloops,
xi = NULL,
omega = NULL,
unbiased = FALSE,
regular = FALSE,
...
)
## S3 method for class 'igraph'
ghype(
graph,
directed,
selfloops,
xi = NULL,
omega = NULL,
unbiased = FALSE,
regular = FALSE,
...
)
## S3 method for class 'ghype'
print(x, suppressCall = FALSE, ...)
|
graph |
either an adjacency matrix or an igraph graph. |
directed |
a boolean argument specifying whether graph is directed or not. |
selfloops |
a boolean argument specifying whether the model should incorporate selfloops. |
xi |
an optional matrix defining the combinatorial matrix of the model. |
omega |
an optional matrix defining the propensity matrix of the model. |
unbiased |
a boolean argument specifying whether to model the hypergeometric ensemble (no propensity), defaults to FALSE. |
regular |
a boolean argument specifying whether to model the 'gnp' ensemble (no xi), defaults to FALSE. |
... |
further arguments passed to or from other methods. |
x |
ghype model |
suppressCall |
boolean, suppress print of the call |
ghype return an object of class "ghype".
matrix
: Fitting ghype models from an adjacency matrix
default
: Generating a ghype model from given xi and omega
igraph
: Fitting ghype models from an igraph graph
ghype
: Print method for ghype object.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.