weighted_mean: Calculate the weighted average correcting for nodes enter or...

Description Usage Arguments

View source: R/window_functions_graph.R

Description

This function will estimate the weights of node based on their first and last observation and the time within a given window (e.g., due to births or deaths), and calculate the weighted average network value.

Usage

1
weighted_mean(obs.values, inOut, net)

Arguments

obs.values

Vector of node level network measures, with column names for each individual measure.

inOut

A dataframe with names in the first column, in a second column the dates these individuals first entered the network, and in a third column the dates these individuals left the network.

net

The network used to calculate the weighted mean.


tbonne/netTS documentation built on July 26, 2021, 2:27 a.m.