| predict | R Documentation |
Predict methods for network regression
## S3 method for class 'netlm'
predict(object, newdata = NULL, ...)
## S3 method for class 'netlogit'
predict(object, newdata = NULL, type = c("link", "response"), ...)
object |
An object of class inheriting "netlm" or "netlogit" |
newdata |
A design matrix with the same columns/variables as the fitted model. |
... |
Additional arguments (not used). |
type |
Character string, one of "response" (default, whether the returned predictions are on the probability scale) or "link" (returned predictions are on the scale of the linear predictor). |
A numeric vector of predicted values.
networkers <- ison_networkers %>% to_subgraph(Discipline == "Sociology")
model1 <- net_regression(weight ~ ego(Citations) + alter(Citations) + sim(Citations),
networkers, times = 20)
predict(model1, matrix(c(1,10,5,2),1,4))
networkers <- ison_networkers %>% to_subgraph(Discipline == "Sociology") %>%
to_unweighted()
model1 <- net_regression(. ~ ego(Citations) + alter(Citations) + sim(Citations),
networkers, times = 20)
predict(model1, matrix(c(1,10,5,2),1,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.