# linkSignificance

From ghypernet v1.0.0
by Giona Casiraghi

##### Estimate statistical deviations from ghype model

linkSignificance allows to estimate the statistical deviations of an observed graph from a ghype model.

##### Usage

```
linkSignificance(
graph,
model,
under = FALSE,
log.p = FALSE,
binomial.approximation = FALSE,
give_pvals = FALSE
)
```

##### Arguments

- graph
an adjacency matrix or a igraph object.

- model
a ghype model

- under
boolean, estimate under-represented deviations? Default FALSE.

- log.p
boolean, return log values of probabilities

- binomial.approximation
boolean, force binomial? default FALSE

- give_pvals
boolean, return p-values for both under and over significance?

##### Value

matrix of probabilities with same size as adjacency matrix.

##### Examples

```
# NOT RUN {
data("adj_karate")
fullmodel <- ghype(graph = adj_karate, directed = FALSE, selfloops = FALSE)
linkSignificance(graph = adj_karate, model = fullmodel, under=FALSE)
# }
```

*Documentation reproduced from package ghypernet, version 1.0.0, License: AGPL-3*

### Community examples

Looks like there are no examples yet.