<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-GB;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Dear Marco,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I think I fixed it.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">You should put the attached file somewhere (e.g. your current directory)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">And give a command such as<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">insertSource("C:\\Users\\tom.snijders\\Documents\\RSienaRForge\\pkg\\RSienaTest\\R\\sienaDataCreate.r",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> package='RSienaTest')<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">(with your pathname inserted and RSiena instead of RSienaTest, depending on which package you are using).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If this is not OK, please let me know!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This will be corrected in the next R-Forge release.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you for the bug report!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best wishes,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Tom<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">================================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Tom A.B. Snijders<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Professor of Statistics and Methodology<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Dept. of Sociology, University of Groningen<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Emeritus Fellow, Nuffield College, University of Oxford<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Associate Member, Dept. of Statistics, University of Oxford<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">http://www.stats.ox.ac.uk/~snijders/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> marco tonellato [mailto:m.tonellato@gmail.com]
<br>
<b>Sent:</b> 25 February 2015 17:49<br>
<b>To:</b> Tom Snijders<br>
<b>Subject:</b> Re: [Rsiena-help] Error in Print01Report for multigroup analysis<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Tom,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">here are the data object and the simplified script.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Basically I have 7 groups and two network waves (advice) + one constant dyadic covariate (energy) for each group.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">This is the error I get when trying print01Report<br>
<br>
Error in format(round(atts$meanp[j], 3), nsmall = 3, width = 10) : <br>
error in evaluating the argument 'x' in selecting a method for function 'format': Error in round(atts$meanp[j], 3) :
<br>
non-numeric argument to mathematical function<br>
<br>
I just found out that when I exclude the dyadic covariate the print01Routine works fine, so the problem must be related to that.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">However, even excluding the dyadic covariate, when I include effects and launch siena07 I get another error message, this one:
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Error : .onLoad failed in loadNamespace() for 'tcltk', details:<br>
call: dyn.load(file, DLLpath = DLLpath, ...)<br>
error: unable to load shared object '/usr/lib/R/library/tcltk/libs/tcltk.so':<br>
<a href="http://libtk8.6.so">libtk8.6.so</a>: cannot open shared object file: No such file or directory<br>
Error: package or namespace load failed for ‘tcltk’<br>
Error in exitfn() : could not find function "tkdestroy"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">it looks like it is not able to load a package / call a function (I'm using RSiena 1.1.278 on my local machine)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Thank you very much for taking a look<br>
<br>
<o:p></o:p></p>
</div>
<p class="MsoNormal">Marco<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Feb 25, 2015 at 5:03 PM, marco tonellato <<a href="mailto:m.tonellato@gmail.com" target="_blank">m.tonellato@gmail.com</a>> wrote:<o:p></o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Thank you for your help Tom.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I'm preparing the data object (it's not too big) and sending it to you.<o:p></o:p></p>
</div>
<p class="MsoNormal">All the best,<o:p></o:p></p>
</div>
<p class="MsoNormal">Marco<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Feb 25, 2015 at 4:56 PM, Tom Snijders <<a href="mailto:Tom.Snijders@nuffield.ox.ac.uk" target="_blank">Tom.Snijders@nuffield.ox.ac.uk</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Dear Marco,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If you send me the data object used (or is it too large to send?) I can try to have a look.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Cheers,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Tom</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">================================================================</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Tom A.B. Snijders</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Professor of Statistics and Methodology</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Dept. of Sociology, University of Groningen</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Emeritus Fellow, Nuffield College, University of Oxford</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Associate Member, Dept. of Statistics, University of Oxford</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://www.stats.ox.ac.uk/~snijders/" target="_blank">http://www.stats.ox.ac.uk/~snijders/</a></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:rsiena-help-bounces@lists.r-forge.r-project.org" target="_blank">
rsiena-help-bounces@lists.r-forge.r-project.org</a> [mailto:<a href="mailto:rsiena-help-bounces@lists.r-forge.r-project.org" target="_blank">rsiena-help-bounces@lists.r-forge.r-project.org</a>]
<b>On Behalf Of </b>marco tonellato<br>
<b>Sent:</b> 25 February 2015 14:35<br>
<b>To:</b> <a href="mailto:rsiena-help@lists.r-forge.r-project.org" target="_blank">
rsiena-help@lists.r-forge.r-project.org</a><br>
<b>Subject:</b> [Rsiena-help] Error in Print01Report for multigroup analysis</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt">Dear All,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt">while importing data in Rsiena (revision 278) for a test multigroup meta-analysis (7 groups, network size between 14 and 39, 1 dependent network and 1 constant dyadic covariate) I encountered
the following error during the Print01Report routine.<br>
<br>
Error in format(round(atts$meanp[j], 3), nsmall = 3, width = 10) : <br>
error in evaluating the argument 'x' in selecting a method for function 'format': Error in round(atts$meanp[j], 3) :
<br>
non-numeric argument to mathematical function<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt">Here is the code I used:<br>
<br>
groups <- list()<br>
groups[[1]] <- list(advice=array(c(g1t1_advice_adjacency, g1t2_advice_adjacency), dim=c(dim(g1t1_advice_adjacency),2)), energy=g1t1_energy_adjacency)<br>
groups[[2]] <- list(advice=array(c(g2t1_advice_adjacency, g2t2_advice_adjacency), dim=c(dim(g2t1_advice_adjacency),2)), energy=g2t1_energy_adjacency)<br>
groups[[3]] <- list(advice=array(c(g3t1_advice_adjacency, g3t2_advice_adjacency), dim=c(dim(g3t1_advice_adjacency),2)), energy=g3t1_energy_adjacency)<br>
groups[[4]] <- list(advice=array(c(g4t1_advice_adjacency, g4t2_advice_adjacency), dim=c(dim(g4t1_advice_adjacency),2)), energy=g4t1_energy_adjacency)<br>
groups[[5]] <- list(advice=array(c(g5t1_advice_adjacency, g5t2_advice_adjacency), dim=c(dim(g5t1_advice_adjacency),2)), energy=g5t1_energy_adjacency)<br>
groups[[6]] <- list(advice=array(c(g6t1_advice_adjacency, g6t2_advice_adjacency), dim=c(dim(g6t1_advice_adjacency),2)), energy=g6t1_energy_adjacency)<br>
groups[[7]] <- list(advice=array(c(g7t1_advice_adjacency, g7t2_advice_adjacency), dim=c(dim(g7t1_advice_adjacency),2)), energy=g7t1_energy_adjacency)<br>
<br>
advicelist <- list()<br>
for (i in 1:7){advicelist[[i]] <- sienaDependent(groups[[i]]$advice)}<br>
<br>
energylist <- list()<br>
for (i in 1:7){energylist[[i]] <- coDyadCovar(groups[[i]]$energy)}<br>
<br>
groups_data_list <- list()<br>
for (i in 1:7){groups_data_list[[i]] <- sienaDataCreate(advice = advicelist[[i]], energy = energylist[[i]])}<br>
<br>
groups_data <- sienaGroupCreate(groups_data_list)<br>
summary(groups_data)<br>
groups_effects <- getEffects(groups_data)<br>
print01Report(groups_data, modelname = 'groups_descriptives')<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt">Do you have any clues on how to fix this?<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt">Thank you.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Marco<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>