Giter VIP home page Giter VIP logo

tnam's Introduction

tnam

Temporal (and Cross-Sectional) Network Autocorrelation Models (TNAM).

Build Status cran version downloads total downloads Research software impact

Archival notice

The package uses maximum pseudolikelihood for estimation, which is likely biased. Consider using the multiparametric spatio-temporal autoregressive (M-STAR) model instead if you have temporal data. If you have a cross-sectional dataset, consider using the BANAM package. The tnam package is archived until better estimation routines have been implemented, but there are currently no plans for this.

tnam's People

Contributors

leifeld avatar

Stargazers

Yajun Lu avatar carl colglazier avatar wkp avatar Eric Tesdahl avatar Sachita Nishal avatar  avatar  avatar nonsabotage avatar Matthew Smith avatar Matteo Gagliolo avatar Tl Yim avatar

Watchers

 avatar P. Sinha avatar Skyler Cranmer avatar

tnam's Issues

Using a network as an independent variable

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

database model

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.

Weight Lag

Why is there no pathdist parameter on the weightlag term?

Outdegree producing NA

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.

tnamdata produces NAs

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)`

Files.zip

Thanks in advance for any suggestions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.