[statnet_help] Fwd: ego.ergm popsize

Michał Bojanowski michal2992 at gmail.com
Thu Nov 23 06:55:12 PST 2023


Forwarding the reply back to the mailing list.

---------- Forwarded message ---------
From: Carine Pachoud <carine.pachoud at hotmail.fr>
Date: Thu, Nov 23, 2023 at 3:43 PM
Subject: RE: [statnet_help] ego.ergm popsize
To: Michał Bojanowski <michal2992 at gmail.com>


Hello Michal,

thank you for your quick answer !

Here the call :
m17 <- ergm.ego(f.ego ~ edges+ nodeifactor ("Type")+ nodeofactor
("Type")+nodematch("Type")+ nodeifactor ("Date")+ nodeofactor
("Date")+ nodematch ("Date")+
nodeifactor("Commune")+nodeofactor("Commune")+ nodematch("Commune")+
nodeifactor ("Mairie")+ nodeofactor("Mairie")+ nodematch("Mairie")+
nodeicov ("LienE")+ nodeocov ("LienE")+nodeifactor ("View")+
nodeofactor ("View")+nodematch("View") + gwesp(0.1,fixed=T)+gwdsp
(0.1,fixed=T),control = control.ergm.ego(ppopsize=990))
summary(m17)

I tried again adding the actual ppopsize : 990 and I get a new message error :

Constructing pseudopopulation network.
Error: Egocentric statistic ‘nodeifactor’ function
‘EgoStat.nodeifactor’ not found.


> summary(m17)

Error: object 'm17' not found


This message appears for each of the terms.

The study focuses on a territorial agrifood system, including a
diversity of actors (farmers, elected officials, civil society,
advisors...) who have different visions of agriculture. In order to
understand sustainable agrifood transformations, I try to see if the
different groups holding different visions interact and how is
structured the network (ERGM). I used a snowball sampling starting
from 15 actors, central and in each typology.

best regards,
Carine Pachoud


________________________________
De : Michał Bojanowski <michal2992 at gmail.com>
Envoyé : jeudi 23 novembre 2023 11:13
À : Carine Pachoud <carine.pachoud at hotmail.fr>
Cc : statnet_help at u.washington.edu <statnet_help at u.washington.edu>
Objet : Re: [statnet_help] ego.ergm popsize

Hello Carine,

Can you please send the exact offending call that is triggering the
error together with the output of calling summary() on your data
object?

In general, population size (as opposed to the pseudo-population size)
should correspond to the size of the population network (which is not
observed in its entirety) you want to make inferences about and from
which you sampled the egos. This inference is the main goal of the
model implemented in ergm.ego. If such a population network does not
exist or is hard to conceive as a theoretical device it might be
difficult to interpret (some of) the results. What's the purpose of
your analysis?

Best,
Michał


On Thu, Nov 23, 2023 at 2:51 PM Carine Pachoud
<carine.pachoud at hotmail.fr> wrote:

Dear ERGM users,

I previously worked with ERGM on complete networks. Today I am dealing
with an egocentric network and the package ego.ergm. I have 55 nodes
et 274 edges. I do not know the size of the population.

It's certainly a very simple adjustment to make but I'm stuck on the
population size. When I want to run my model, I get the following
error message:

Error in if (ppopsize < sampsize && !is.data.frame(control$ppopsize))
warning("Using a smaller pseudopopulation size than sample size
usually does not make sense.") else if (ppopsize == :
missing value where TRUE/FALSE needed

I tried to fix the ppopsize with control =
control.ergm.ego(ppopsize=1000) and also to fix the popsize
(popsize=N, control=snctrl(ppopsize=N)), based on your tutorials, but
I still have this error message.

Could you help me ?

thanks a lot!

best regards,
Carine Pachoud



Sans virus.www.avast.com
_______________________________________________
statnet_help mailing list
statnet_help at u.washington.edu
http://mailman13.u.washington.edu/mailman/listinfo/statnet_help



More information about the statnet_help mailing list