goldfish
goldfish copied to clipboard
Preprocessing using `startTime` produce a wrong time span
Describe the bug
Preprocessing using startTime
produce a wrong time span for the first observation
To Reproduce
library(goldfish)
data("Social_Evolution")
callNetwork <- defineNetwork(nodes = actors, directed = TRUE)
callNetwork <- linkEvents(
x = callNetwork, changeEvent = calls,
nodes = actors
)
preprocess <- estimate(callsDependent ~ inertia + recip + trans,
model = "DyNAM", subModel = "choice",
estimationInit = list(startTime = calls$time[20]-0.001),
preprocessingOnly = TRUE
)
Expected behavior Not sure, but seems that the best value to report is the time elapsed since the last event and not from the first event in the dataset.
Desktop (please complete the following information):
- OS: MacOS
- R Version: 4.4.0
- Goldfish Version: 1.6.8