Learn R Programming

ghypernet (version 1.1.2)

RMSE: Computes the Root Mean Squared Error

Description

Computes the Root Mean Squared Error

Usage

RMSE(model, adj, null = FALSE)

Value

numeric, root mean squared error of residuals of nrm model fit

Arguments

model

nrm model estimate

adj

original adjacency matrix

null

logical, whether to compute using null model

Examples

Run this code

data('highschool.predictors')
highschool.m <- nrm(w=highschool.predictors[1], adj=contacts.adj, directed=FALSE, selfloops=FALSE)
RMSE(highschool.m, contacts.adj)

Run the code above in your browser using DataLab