Nothing
#' Create a dyadic dummy variable using dummy variables#'
#' @param x a dummy variable: characteristics of agent \emph{i}.
#' @param y a dummy variable: characteristics of agent \emph{j}.
#' @return a dyadic dummy variable which takes 1 if both agents have the same characteristic, and 0 otherwise
#' @keywords internal
#' @noRd
ifdummy1 <- function(x, y){
x <- as.numeric(as.character(x))
y <- as.numeric(as.character(y))
res <- x - y
ifelse(x == 1, ifelse(res == 0, 1, 0), 0)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.