Fit netprioR model

Share:

Description

Fit netprioR model

Usage

1
2
3
4
fit(object, ...)

## S4 method for signature 'netprioR'
fit(object, refit = FALSE, ...)

Arguments

object

A netprioR object

...

Additional arguments

refit

Flag whether to overwrite existing fit

Value

A netprioR object with fitted model

Author(s)

Fabian Schmich

Examples

1
2
3
4
5
6
7
8
data(simulation)
np <- netprioR(networks = simulation$networks,
               phenotypes = simulation$phenotypes,
               labels = simulation$labels.obs,
               model.fit = FALSE)
summary(np)
np <- fit(np, nrestarts = 1, verbose = FALSE)
summary(np)