Learn R Programming

jlsm (version 0.1.0)

GOFaplsm: Assess the fit of the APLSM

Description

assess the fit of the model using ROC curves and auc values

Usage

GOFaplsm(model, type, Y.i, Y.ia)

Arguments

model

object of class the APLSM

type

character indicating the types of model. It could be "DD", distance by distance model, "DV", distance by vector model, "VV", vector by vector model

Y.i

N by N matrix containing the binary social network

Y.ia

N by M matrix containing the binary multivariate attributes

Value

list containing:

  • Yi.auc scaler of the area under the curve for the social network

  • Ya.auc scaler of the area under the curve for the multivariate covariates

Examples

Run this code
# NOT RUN {
attach(french)
b=aplsm(Niter=3,Y.i, Y.ia,D=2, type="DD")
GOFaplsm(b, "DD",Y.i, Y.ia)
# }

Run the code above in your browser using DataLab