neha_geta: A function to estimate NEHA parameters using greedy edge...

View source: R/neha.R

neha_getaR Documentation

A function to estimate NEHA parameters using greedy edge addition

Description

A function to estimate NEHA parameters using greedy edge addition

Usage

neha_geta(eha_data, node, time, event, cascade, ncore = 2)

Arguments

eha_data

A dataframe that includes one observation for each node at risk of experiencing the event during each at-risk time point in each cascade. Note, it is assumed that each node can experience an event in each cascade once, at most.

node

A character string name of the variable that gives the node id

time

A character string name of the variable that gives the time, in integers

event

A character string name of the variable that gives the binary 0/1 indicator of event occurrence.

cascade

A character string name of the variable that gives the cascade id

ncore

integer indicating the number of cores to use in parallel computation.


desmarais-lab/dnehm documentation built on Jan. 17, 2025, 11:57 a.m.