tidyDegroot: Converts predictions from degroot into a tidy dataset

Description Usage Arguments Value Note

View source: R/tidy_degroot.R

Description

Converts predictions from degroot into a tidy dataset

Usage

1
tidyDegroot(pred, id)

Arguments

pred:

a matrix of predictions

id:

a vector whose length is nrow(pred) that gives ID values for pred. IF it is missing, it will be set to 1:nrow(pred)

Value

A tibble (i.e., a data.frame) with 3 columns: an id column (id), a column for the predicted value from the simulation, and a value for the number of iterations, and a column for the number of draws

Note

This function is in beta, please use with caution! It also involves loading several other dependencies, which isn't ideal.


jcfisher/latentnetDiffusion documentation built on May 20, 2019, 5:26 p.m.