Code Monkey home page Code Monkey logo

ina's Introduction

ina

This package contains the data used in the book, Inferential Network Analysis, by Skyler J. Cranmer, Bruce A. Desmarais, and Jason W. Morgan.

ina's People

Contributors

jason-morgan avatar bdesmarais avatar skyler10 avatar

Stargazers

wkp avatar Marcel Mallow avatar Celia Chen avatar Andrés Cruz avatar

Watchers

 avatar  avatar  avatar Caleb Pomeroy avatar  avatar

ina's Issues

Plot and network object errors

Hello! I'm trying to work through the data examples in the book. In the second chapter, I had trouble creating the plot for the censorship data. I had an error that said NULL value passed as symbol address. Everything else worked fine. I decided to move to Chapter 3 and the Krackhardt data. I'm getting the same error. Please see below for my syntax and the error message. (I'm also now getting an error on creating the tenure object. Do you have any suggestions? Thanks!

Danette

library(network)
library(ina)

data(Krackhardt)
Net <- Krackhardt

par(mfrow = c(1, 3))
set.seed(1)
Pal <- colorRampPalette(c("#e5f5e0", "#31a354"))

tenure <- get.vertex.attribute(Net, "Tenure")
col.tenure <- Pal(length(unique(tenure))) [
as.numeric(cut(tenure, breaks = length(unique(tenure))))
]

plot(Net, edge.col="gray", label.col="black", vertex.cex=1.5, vertex.col=col.tenure, label=tenure,
main="Tenure")

library(network)
library(ina)
data(Krackhardt)
Net <- Krackhardt
par(mfrow = c(1, 3))
set.seed(1)
Pal <- colorRampPalette(c("#e5f5e0", "#31a354"))
tenure <- get.vertex.attribute(Net, "Tenure")
Error in get.vertex.attribute(Net, "Tenure") : Not a graph object
col.tenure <- Pal(length(unique(tenure))) [

  • as.numeric(cut(tenure, breaks = length(unique(tenure))))
  • ]
    Error in unique(tenure) : object 'tenure' not found

plot(Net, edge.col="gray", label.col="black", vertex.cex=1.5, vertex.col=col.tenure, label=tenure,

  •  main="Tenure")
    

Error in .Call(getEdgeAttribute_R, el, attrname, na.omit, null.na, deleted.edges.omit) :
NULL value passed as symbol address

Water Policy in SF bay area data

Hi there,

Thanks for this helpful package and a great book! I'm using it for the inferential network class I teach, and it helps a lot.

In section 4.5, you present a bipartite model from Lubell and Robbins (2017). I have looked for the data in the ina package but could not find it. I also tried to source it from the supporting material of the paper. Still, no luck.

Apologies, if the data is there and I could not find it, could you tell me where to get it, or could you insert it in this package?

Many thanks,
Claudia

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.