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

Tom Snijders Tom.Snijders at nuffield.ox.ac.uk
Mon Mar 24 21:24:25 CET 2014


Dear all,

I'm making contact with Mikko outside the list to try and solve this error.

Best,
Tom


================================================================
Tom A.B. Snijders
Professor of Statistics in the Social Sciences
Department of Politics and Department of Statistics
Nuffield College
University of Oxford
tel. +44-01865-278599


-----Original Message-----
From: rsiena-help-bounces at lists.r-forge.r-project.org [mailto:rsiena-help-bounces at lists.r-forge.r-project.org] On Behalf Of Rönkkö Mikko
Sent: 11 March 2014 15:38
To: rsiena-help at lists.r-forge.r-project.org
Subject: [Rsiena-help] Error using dyadic covariates generated from named list

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


_______________________________________________
Rsiena-help mailing list
Rsiena-help at lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rsiena-help


More information about the Rsiena-help mailing list