nrm_selection: Perform AIC forward selection for nrm.

Description Usage Arguments Value Methods (by class) Author(s) See Also Examples

View source: R/nrmSelection.R

Description

Perform AIC forward selection for nrm.

Usage

 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
50
51
52
nrmSelection(
  adj,
  predictors,
  directed,
  selfloops,
  pval = 0.05,
  xi = NULL,
  init = NULL,
  ncores = NULL,
  ...
)

nrm_selection(
  adj,
  predictors,
  directed,
  selfloops,
  pval = 0.05,
  xi = NULL,
  init = NULL,
  ncores = NULL,
  ...
)

## Default S3 method:
nrm_selection(
  adj,
  predictors,
  directed,
  selfloops,
  pval = 0.05,
  xi = NULL,
  init = NULL,
  ncores = NULL,
  ...
)

## S3 method for class 'nrmpredictor'
nrm_selection(
  adj,
  predictors,
  directed,
  selfloops,
  pval = 0.05,
  xi = NULL,
  init = NULL,
  ncores = NULL,
  ...
)

## S3 method for class 'nrm_selection'
print(x, ...)

Arguments

adj

the adjacency matrix of the response network

predictors

list containing the set of predictors as sublists.

directed

logical, is the response network directed?

selfloops

logical, do the response network allows selfloops?

pval

the significance at which computing confidence intervals.

xi

optional, the possibility matrix Ξ.

init

optional, initial values passed to the solver to estimate the MLE.

ncores

optional, number of cores over which parallelise the task.

...

optional arguments to print or plot methods.

x

object of class 'nrm_selection'.

Value

A nrm object

Methods (by class)

Author(s)

Giona Casiraghi

Giona Casiraghi

See Also

nrm

nrm_selection

Examples

1
2
3
4
5
data('highschool.predictors')
models <- nrm_selection(adj=contacts.adj,predictors=create_predictors(highschool.predictors),
  ncores=1,directed=FALSE,selfloops=FALSE)
texreg::screenreg(models$models, digits=3)
 

ghypernet documentation built on Jan. 8, 2021, 2:05 a.m.