igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] correlation between attributes in bipartite network


From: Gábor Csárdi
Subject: Re: [igraph] correlation between attributes in bipartite network
Date: Tue, 29 Mar 2011 14:26:00 -0400

Simone,

I am not completely sure what you want to correlate. Can you simply
write down, what exactly would be on the two axes in your desired
plot?

Also, it helps, if you send some toy data or graph, or code that
creates toy data. Otherwise people might be reluctant to spend ten
minutes on making up some data. At least I am.

Best,
Gabor

On Tue, Mar 29, 2011 at 6:19 AM, Simone Gabbriellini
<address@hidden> wrote:
> Hello List,
>
> I would like to plot a correlation between a degree distribution of nodes 
> versus one of their attribute. The situation is as follow:
>
> - users (type==0) have the attribute $invitedby
> - project (type==1) have the attribute $startedby
>
> I want to know if there is a correlation between the degree of users and the 
> participation in project where users$invitedby == project$startedby.
> If the plot results in a straight line near the bisector, I know that users 
> are used to join only project made by the users that also invited them.
>
> I have this for degree distribution:
>
> deg<-degree(g, V(g)[type==0])
> d<-table(deg)
> dd<-as.numeric(d)/sum(as.numeric(d))
> deglist<-as.numeric(names(d))
>
> now I need to see for each node A with degree in deglist the average number 
> of project P linked to A where A$invitedby==P$startedby
>
> but I really lose myself here...
>
> any help more than welcome.
>
> best,
> Simone
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <address@hidden>     MTA KFKI RMKI



reply via email to

[Prev in Thread] Current Thread [Next in Thread]