Releases · USCCANA/netdiffuseR
v1.23.0 Multiadoption (CRAN) CRAN v1.22.6 CRAN Release 1.19.0 Changes in netdiffuseR version 1.19.0 (2017-10-16) New functions and featuresrdiffnet
now allows passing scalars for threshold.dist
, more over, the user
can also ask the function to just warn when there is no diffusion instead of
returning with error.
plot.diffnet
, plot_diffnet
, plot.diffnet_mentor
, and plot_diffnet2
use igraph for plotting.
Also, users can now pass "degree" for -vertex.size- (vertex.cex not used anymore),
allowing to "automatically" scale vertices by (in/out/.)degree. Also,
plotting arguments like vertex.* or edge.* are standarized so these match igraph.
plot_diffnet
has a new parameter: background
.
rdiffnet_multiple
, a wrapper of rdiffnet
, allows performing simulations studies
by running simulating multiple diffusion networks using rdiffnet
.
exposure
has a new parameter: lags
. By default lags = 0, returns a lagged
exposure matrix.
igraph_to_diffnet
was failing with the graph had no weights.
drop_isolated
was not behaving well for diffnet objects.
vertex_covariate_dist
was incorrectly specified. Only the default p=2
were OK. Now fixed and the tests/ folder includes a tests on this.
plot_diffnet2
was not passing color.ramp
to drawColorKey
. Now fixed.
plot.diffnet_mentor
had a bug. Uncesary permutation of vertices was done,
but it actually had no visible effect. Similar problem was corrected indiffnet_to_igraph
, and other plot methods using igraph for plotting.
Replacing some C++ functions by R functions in cases in which there
was no decrease in performance.
plot_diffnet
function now has smaller margins, so looks more appealing.
New examples in vignettes "netdiffuseR showcase: Medical Innovations", and
"Simulating diffusion networks: Using the rdiffnet
function".
bootnet
implements network bootstrapping based on Snijders and Borgatti (1999)
mentor_matching
implements Valente and Davis (1999) Mentor matching algorithm.
including a plot method.
approx_geodesic
an alternative to igraph::distances
and sna::geodist
.
computes geodesics up to a certain number of steps and returns a sparse
matrix.
matrix_compare
Efficiently compares two sparse matrices looking only at the valued
cells.
as_dgCMatrix
Coerce matrix-like objects into dgCMatrix objects (sparse matrices
from the Matrix
package).
fitbass
Fits the Bass Diffusion Model to an observed vector of cumulative
adopters. The estimation is done via stats::nls
.
netmatch
and netmatch_prepare
(on development) implement matching estimators
with network data.
dgr
returned with error when self == TRUE
In some calls to igraph::graph_from_adj...
sorting of vertices was not preserved.
The matrix
method in egonet_attrs
was passing a list of vertices instead of
the attributes. Fixed.
transformGraphBy
was returning with error when the time periods ranged other than
1, 2, ...
rgraph_er
is now significantly faster (orders of magnitude compare to
previous versions). rgraph_ba
is faster too.
moran
now returns the sd, expected and p-value.
exposure
now receives static graphs in alt.graph
with a warning.
rewire_graph
now also uses QAP. This affects directly to structu_test
.
struct_test
now allows other types of graphs. Before it onlydiffnet
objects.rewire_graph
gains a new argument for the algorithm "swap". Nown_rewires
now has a default of 20 (before it was 100).rgraph_ba
gains a new argument, self=TRUE
. By default behavesrgraph_ba
, the argument eta
allows implementing De Almeida et al. (2013)exposure
and dgr
are now pure R code (C++ functions werediffnet
class objects now have two new meta-values: name and behavior.diffnet
class objectsclassify_adopters
now always includes Non-Adopters.vertex_covariate_dist
computes distances between vertices using both the graphvertex_mahalanobis_dist
computes mahalanobis distance between vertices (as above).struct_test_asymp
an asymptotic approximation of struct_test
(not recomended).ego_variance
computes a pseudo variance at the ego level (aux function forstruct_test
).transformGraphBy
applies a function that transforms a graph consideringstruct_equiv
.read_ucinet
read UCINET binary files (both header and graph file). Stillplot.diffnet_degSeq
method allows visualizing degree sequence as log-logdiag_expand
creates a single adjacency matrix from a dynamic graph.summary.diffnet_adoptChange
method generates a summary table of the dfselect_egoalter
.permute_graph
permutes the values of an adjacency matrix (Conditionalrewire_qap
generates isomorphic graphs by "changing the labels".^.diffnet
method was rasing to +1 power, e.g. diffnet^2
was actuallydiffnet^3
./.diffnet
was not working.plot_diffnet
was computing the coordinates of the cells wrongly. Most of thec.diffnet_struct_test
method was not updating the p.value
.edgelist_to_adjmat
was not processing correctly undirectedsurvey_to_diffnet
had an issue processin dyn graph attrs returningselect_egoalter
returned error when graph
was an array.[[<-.diffnet
failed when replacing a dynamic attribute withNULL
value (e.g. dn[["my_dyn_att"]] <- NULL
).struct_equiv
: When groupvar
was a list (dynamic attr), therewire_graph.array
: Returned error when algorithm="swap"
rewire_graph
: The option copy.first
was not been applied correctly.hist.diffnet_struct_test
: ...
now passed to hist.default
.egonet_attrs
: The matrix method was returning with error.plot_infectsuscept
includes 2D kernel smoother via MASS::kde2d
.infection
, susceptibility
and threshold
now report NA
for non-adoptersegonets_attrs
now has new argument: self.attrs
allows including ego's attributesplot_diffnet
now uses igraph::plot.igraph
for plotting insteadthreshold
gains a new argument: lags
now users can define threshold aslags
time periods prior to the time of adoption. By default is 0c.diffnet_struct_test
: A wrapper of boot:::c.boot
.diffusionMap
computes the required matrix to be used withimage
-like functions mapping a vertex covariate given a graph structure.n_rewires
: computes a suggested number of rewires per step in order to attaindiffnetLapply
: Apply throught periods on diffnet objects.diffnet
. Now users can apply str
,dimnames
(so colnames
and rownames
), t
, &
, |
, dim
and %*%
.drawColorKey
: Handy function to draw a color key in the current plot.classify_adopters
: As in Valente (1995), depending on time of adoption, adoptersftable
and plot
.rescale_vertex_igraph
: Helper function to fix the size of vertex when callingplot.igraph
so that the size is proportional to the x-axis.Preparing for CRAN after PR to RcppArmadillov1.16.4.4.9000
Changing version naming (.9000 for dev version)Pre-workshop
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4