<div dir="ltr"><div><div><div>Thank you for your help Tom.<br><br></div>I'm preparing the data object (it's not too big) and sending it to you.<br><br></div>All the best,<br></div>Marco<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 4:56 PM, Tom Snijders <span dir="ltr"><<a href="mailto:Tom.Snijders@nuffield.ox.ac.uk" target="_blank">Tom.Snijders@nuffield.ox.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dear Marco,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Tom<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">================================================================<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Tom A.B. Snijders<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Professor of Statistics and Methodology<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dept. of Sociology, University of Groningen<u></u><u></u></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<u></u><u></u></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<u></u><u></u></span></p>
<p class="MsoNormal"><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><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <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<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Dear All,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="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<u></u><u></u></p>
</div>
<p class="MsoNormal" style="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')<br>
<br>
<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Do you have any clues on how to fix this?<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Thank you.<u></u><u></u></p>
</div>
<p class="MsoNormal">Marco<u></u><u></u></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>