[Rsiena-help] Error using dyadic covariates generated from named list

Rönkkö Mikko mikko.ronkko at aalto.fi
Tue Mar 11 16:37:52 CET 2014


Hi

Siena crashes when calling sienaDataCreate with varying dyadic covariates that are created from a named list. I believe this to be a bug. 

In my case, I am creating the varying dyadic covariates by calling varDyadCovar with a named list, where the names are years. In SienaDataCreate.R (https://r-forge.r-project.org/scm/viewvc.php/pkg/RSiena/R/sienaDataCreate.r?annotate=250&root=rsiena), the attributes of my list are stored on line 499. Then the last element from the list is dropped on line 452. Then all attributes except "dim" are copied back. This causes the stored "dimnames" attribute to have one element more than the "dimnames" after dropping the observation, resulting in error. Adding an exclusion for "dimnames" in addition to "dim" solves the issue.

Mikko




More information about the Rsiena-help mailing list