goldfish icon indicating copy to clipboard operation
goldfish copied to clipboard

Preprocessing using `startTime` produce a wrong time span

Open auzaheta opened this issue 6 months ago • 0 comments

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

auzaheta avatar Aug 08 '24 11:08 auzaheta