Skip to content

Commit

Permalink
minor synthax changes
Browse files Browse the repository at this point in the history
  • Loading branch information
perblock committed Sep 12, 2024
1 parent 9581d65 commit e524c54
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 18 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
^manual$
^CRAN-SUBMISSION$
^.github$
^MoNAn_logo\.png$
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Authors@R: c(person("Per", "Block", role = c("cre", "aut", "cph"), email = "bloc
comment = c(ORCID = "0000-0002-7583-2392")),
person("Christoph", "Stadtfeld", role = "aut", comment = c(ORCID = "0000-0002-2704-2134")),
person("Nico", "Keiser", role = "aut", comment = c(ORCID = "0009-0007-3403-278X")),
person("Marion", "Hoffman", role = "aut", comment = c(ORCID = 0000-0002-0741-7760)))
person("Marion", "Hoffman", role = "aut", comment = c(ORCID = "0000-0002-0741-7760")))
Description: Implements the method to analyse weighted mobility networks or distribution networks as outlined in:
Block, P., Stadtfeld, C., & Robins, G. (2022) <doi:10.1016/j.socnet.2021.08.003>.
The purpose of the model is to analyse the structure of mobility,
Expand Down
16 changes: 10 additions & 6 deletions R/2f_effectFunctions_endogenousCovariateBased.R
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ avoiding_dissimilar_covar_cont <- function(dep.var = 1,



#' associativity_all_GW_covar_bin
#' associativity_all_AC_covar_bin
#'
#' Do individuals with the same attribute tend to use the same paths and
#' individuals with different attributes to move to different places?
Expand All @@ -564,19 +564,21 @@ avoiding_dissimilar_covar_cont <- function(dep.var = 1,
#' @param edge
#' @param update
#' @param getTargetContribution
#' @param alpha
#'
#' @return Returns the change statistic or target statistic of the effect for
#' internal use by the estimation algorithm.
#' @keywords internal
associativity_all_GW_covar_bin <- function(dep.var = 1,
associativity_all_AC_covar_bin <- function(dep.var = 1,
resource.attribute.index,
state,
cache,
i,
j,
edge,
update,
getTargetContribution = FALSE){
getTargetContribution = FALSE,
alpha = 2){

nResources <- cache[[dep.var]]$valuedNetwork[i, j]
nResources_1 <- cache[[dep.var]]$resourceNetworks[[resource.attribute.index]][i, j]
Expand Down Expand Up @@ -629,7 +631,7 @@ associativity_all_GW_covar_bin <- function(dep.var = 1,
}


#' associativity_one_GW_covar_bin
#' associativity_one_AC_covar_bin
#'
#' Do individuals with the same attribute tend to use the same paths and
#' individuals with different attributes to move to different places?
Expand All @@ -647,19 +649,21 @@ associativity_all_GW_covar_bin <- function(dep.var = 1,
#' @param edge
#' @param update
#' @param getTargetContribution
#' @param alpha
#'
#' @return Returns the change statistic or target statistic of the effect for
#' internal use by the estimation algorithm.
#' @keywords internal
associativity_one_GW_covar_bin <- function(dep.var = 1,
associativity_one_AC_covar_bin <- function(dep.var = 1,
resource.attribute.index,
state,
cache,
i,
j,
edge,
update,
getTargetContribution = FALSE){
getTargetContribution = FALSE,
alpha = 2){

nResources <- cache[[dep.var]]$valuedNetwork[i, j]
nResources_1 <- cache[[dep.var]]$resourceNetworks[[resource.attribute.index]][i, j]
Expand Down
2 changes: 1 addition & 1 deletion man/MoNAn-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e524c54

Please sign in to comment.