leifeld / tnam Goto Github PK
View Code? Open in Web Editor NEWTemporal Network Autocorrelation Models (TNAM)
Temporal Network Autocorrelation Models (TNAM)
NAMESPACE does not include export("attribsim")
- so the function cannot be used.
I have data that essentially looks like this:
Network, Seed size, Diffusion
i.e. a set of different networks and some data that goes along with each.
I'd like to run a regression, something like this:
Diffusion ~ Seed size + Clustering + Average path length + Number of components...
But instead can I use tnam to run a regression using the weighted network structure itself as an independent variable rather than extracting summary variables from the network data? Like this:
Diffusion ~ Seed size + Network
Why is there no pathdist parameter on the weightlag term?
Hello, I intend to apply the tnam package in an academic research. More precisely, in a study on international trade networks (comtrade data). Would you like to know how the database should be built? For example data.frame or list? Do you have any models? Thanks.
Dear all, I am new to tnam and looking for help.
I have a directed network with 91 actors (only one time point) and a number of actor's attributes. My data are rather sensitive, but I try to provide a minimal example here. The dependent variable here is named hetero.
This is the code
`library(statnet)
library(tnam)
library(texreg)
#read in network data#
tgnet <- read.csv("C:/Users/Anja Osei/Desktop/Togo data original/tgnet.csv", row.names=1, sep=";", stringsAsFactors=FALSE)
View(tgnet)
tgnet<-as.matrix(tgnet)
tgnet<-as.network(tgnet)
plot(togonet)
#read in attribute data#
tgexample <- read.csv("C:/Users/Anja Osei/Desktop/Togo data original/tgexample.csv", row.names=1, sep=";", stringsAsFactors=FALSE)
#set network attributes#
set.vertex.attribute(tgnet, "year", tgexample$year)
#minimal example using clustering and year#
model1<-tnam(tgexample$hetero~clustering(tgnet)+covariate(tgexample$year, coefname="year"))
summary(model1)
#using tnamdata, clustering produces NAs#
tnamdata(tgexample$hetero~clustering(tgnet)+covariate(tgexample$year, coefname="year"))
#if I add clustering as a covariate, it runs. I have exactly this problem with whatever I try, centrality, netlag... everything#
test<-clustering(tgnet)
model2<-tnam(tgexample$hetero~covariate(test$clustering, coefname="clustering")+covariate(tgexample$year, coefname="year"))
summary(model2)`
Thanks in advance for any suggestions.
What might cause outdegree to always produce NA in the model summary in the analysis of a weighted network? At the same time, outdegree.degree0 produces results.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.