| predict.nrm | R Documentation | 
Method to predict the expected values of a nrm model
## S3 method for class 'nrm'
predict(object, m = NULL, adj = NULL, null = FALSE, multinomial = NULL, ...)
object | 
 nrm object from which to predict  | 
m | 
 integer, the number of edges to be used  | 
adj | 
 optional matrix, the adjacency matrix from which to get the number of edges  | 
null | 
 optional boolean, is it a null model? default FALSE  | 
multinomial | 
 logical. Optional argument. Whether to use multinomial approximation. If left blank it is selected automatically based on network size.  | 
... | 
 other arguments  | 
numeric, predicted values from nrm model. (If model is undirected, only upper.tri of adjacency matrix is returned.)
data('highschool.predictors')
highschool.m <- nrm(w=highschool.predictors[1], adj=contacts.adj, directed=FALSE, selfloops=FALSE)
predict(highschool.m, contacts.adj)
data('highschool.predictors')
highschool.m <- nrm(w=highschool.predictors, adj=contacts.adj, directed=FALSE, selfloops=FALSE)
predict(highschool.m, contacts.adj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.