{
  "_id": "6a42cf924ba05a737d8b1a71",
  "Package": "amorem",
  "Title": "Augmented Modelling of Relational Events",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(given = \"Francisco\", family = \"Richter\", email = \"richtf@usi.ch\", role = c(\"aut\", \"cre\")),\nperson(given = \"Martina\", family = \"Boschi\", role = \"aut\"),\nperson(given = \"Ernst C.\", family = \"Wit\", role = \"aut\"),\nperson(given = \"Melania\", family = \"Lembo\", role = \"aut\"))",
  "Description": "Utilities for simulating and prototyping relational event\nmodels, including helpers to generate dynamic event sequences\nand covariate processes for sender and receiver sets. The\nendogenous-effect and case-control estimation machinery follows\nJuozaitiene and Wit (2024) <doi:10.1093/jrsssa/qnae132>.",
  "License": "MIT + file LICENSE",
  "URL": "https://franciscorichter.github.io/amorem/,\nhttps://github.com/franciscorichter/amorem",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-29 19:58:47 UTC",
    "User": "root"
  },
  "Author": "Francisco Richter [aut, cre], Martina Boschi [aut], Ernst C.\nWit [aut], Melania Lembo [aut]",
  "Maintainer": "Francisco Richter <richtf@usi.ch>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-29 13:50:12 UTC",
  "RemoteUrl": "https://github.com/cran/amorem",
  "RemoteRef": "HEAD",
  "RemoteSha": "ff20547ebfd6d1a0fa8097bc158abbdf01d3c91a",
  "MD5sum": "5ec23e242d4abcca29c4a7a8b103d4e8",
  "_user": "cran",
  "_type": "src",
  "_file": "amorem_1.0.0.tar.gz",
  "_fileid": "fa5175d4893d543faca7813069a0ad1297a41f9c6e0d0f06218c4aac51499e2b",
  "_filesize": 3389963,
  "_sha256": "fa5175d4893d543faca7813069a0ad1297a41f9c6e0d0f06218c4aac51499e2b",
  "_created": "2026-06-29T19:58:47.000Z",
  "_published": "2026-06-29T20:03:30.708Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 84144948224,
      "time": 224,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7963071019"
    },
    {
      "job": 84144948219,
      "time": 237,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7963074686"
    },
    {
      "job": 84144948195,
      "time": 233,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "7963074103"
    },
    {
      "job": 84144948192,
      "time": 239,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "7963075150"
    },
    {
      "job": 84144189502,
      "time": 241,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "7962985896"
    },
    {
      "job": 84144948185,
      "time": 158,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7963045520"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/28398714663",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/amorem",
  "_commit": {
    "id": "ff20547ebfd6d1a0fa8097bc158abbdf01d3c91a",
    "author": "Francisco Richter <richtf@usi.ch>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1782741012
  },
  "_maintainer": {
    "name": "Francisco Richter",
    "email": "richtf@usi.ch"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "splines",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "withr",
      "role": "Imports"
    },
    {
      "package": "torch",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.1.0",
      "role": "Suggests"
    },
    {
      "package": "mgcv",
      "role": "Suggests"
    },
    {
      "package": "coxme",
      "role": "Suggests"
    },
    {
      "package": "roxygen2",
      "version": ">= 7.3.0",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "version": ">= 2.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-27",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.0",
      "date": "2026-06-29"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 614,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/amorem"
  },
  "_devurl": "https://github.com/franciscorichter/amorem",
  "_pkgdown": "https://franciscorichter.github.io/amorem/",
  "_searchresults": 12,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/amorem.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2026-06-29"
    }
  ],
  "_exports": [
    "as_dyadic_log",
    "as_hyperedge_log",
    "attach_static_covariates",
    "compare_models",
    "compare_models_global",
    "compare_models_smooth",
    "cpp_supported_stats",
    "endogenous_features",
    "gof_auxiliary",
    "gof_global",
    "gof_multivariate",
    "gof_univariate",
    "hyperedge_activity",
    "hyperedge_features",
    "hyperedge_log",
    "hyperedge_sizes",
    "hyperedge_subrep",
    "is_hyperedge_log",
    "martingale_residuals",
    "nn_control",
    "nn_uncertainty",
    "rem",
    "sample_non_events",
    "simulate_actor_covariates",
    "simulate_directed_hyperedge_events",
    "simulate_directed_hyperevents_tvnl",
    "simulate_hyperedge_events",
    "simulate_relational_events",
    "standardize_event_log",
    "transform_recency",
    "widen_case_control"
  ],
  "_datasets": [
    {
      "name": "classroom_actors",
      "title": "Classroom actor attributes (McFarland 2001)",
      "object": "classroom_actors",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "sex",
        "role"
      ],
      "rows": 20,
      "table": true,
      "tojson": true
    },
    {
      "name": "classroom_events",
      "title": "Classroom interaction events (McFarland 2001)",
      "object": "classroom_events",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "sender",
        "receiver",
        "interaction_type",
        "weight"
      ],
      "rows": 691,
      "table": true,
      "tojson": true
    },
    {
      "name": "college_msg",
      "title": "CollegeMsg: private messages on a university online community",
      "object": "college_msg",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "sender",
        "receiver"
      ],
      "rows": 59835,
      "table": true,
      "tojson": true
    },
    {
      "name": "dist_matrix",
      "title": "US state distance matrix",
      "object": "dist_matrix",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "Wyoming",
        "Alaska",
        "Maryland",
        "American Samoa",
        "Arkansas",
        "North Dakota",
        "Delaware",
        "Guam",
        "New Mexico",
        "Utah",
        "West Virginia",
        "Kansas",
        "Georgia",
        "Mississippi",
        "Minnesota",
        "New Hampshire",
        "Missouri",
        "Idaho",
        "South Dakota",
        "Pennsylvania",
        "Oklahoma",
        "Indiana",
        "New Jersey",
        "Nebraska",
        "Colorado",
        "New York",
        "Montana",
        "Kentucky",
        "Vermont",
        "District of Columbia",
        "Florida",
        "Nevada",
        "Commonwealth of the Northern Mariana Islands",
        "Tennessee",
        "Iowa",
        "Alabama",
        "Michigan",
        "California",
        "Connecticut",
        "Arizona",
        "Texas",
        "Virginia",
        "Illinois",
        "Hawaii",
        "Oregon",
        "Rhode Island",
        "United States Virgin Islands",
        "South Carolina",
        "Washington",
        "Puerto Rico",
        "Louisiana",
        "Maine",
        "Ohio",
        "Wisconsin",
        "North Carolina",
        "Massachusetts"
      ],
      "rows": 56,
      "table": true,
      "tojson": true
    },
    {
      "name": "email_eu_core",
      "title": "Email-Eu-Core temporal (single-department subset)",
      "object": "email_eu_core",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "sender",
        "receiver"
      ],
      "rows": 12216,
      "table": true,
      "tojson": true
    },
    {
      "name": "radoslaw_email",
      "title": "Manufacturing-company email events (Michalski et al. 2014)",
      "object": "radoslaw_email",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "sender",
        "receiver",
        "weight"
      ],
      "rows": 82927,
      "table": true,
      "tojson": true
    },
    {
      "name": "social_evolution_actors",
      "title": "Actor attributes for the Social Evolution study",
      "object": "social_evolution_actors",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "present",
        "floor",
        "gradeType"
      ],
      "rows": 84,
      "table": true,
      "tojson": true
    },
    {
      "name": "social_evolution_calls",
      "title": "Phone calls in the Social Evolution study (Madan et al. 2011)",
      "object": "social_evolution_calls",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "sender",
        "receiver",
        "increment"
      ],
      "rows": 439,
      "table": true,
      "tojson": true
    },
    {
      "name": "social_evolution_friendship",
      "title": "Friendship-survey events for the Social Evolution study",
      "object": "social_evolution_friendship",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "sender",
        "receiver",
        "replace"
      ],
      "rows": 766,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "attach_static_covariates",
      "title": "Attach static covariates to an event log",
      "topics": [
        "attach_static_covariates"
      ]
    },
    {
      "page": "classroom_actors",
      "title": "Classroom actor attributes (McFarland 2001)",
      "topics": [
        "classroom_actors"
      ]
    },
    {
      "page": "classroom_events",
      "title": "Classroom interaction events (McFarland 2001)",
      "topics": [
        "classroom_events"
      ]
    },
    {
      "page": "college_msg",
      "title": "CollegeMsg: private messages on a university online community",
      "topics": [
        "college_msg"
      ]
    },
    {
      "page": "compare_models",
      "title": "Compare candidate endogenous specifications by AIC",
      "topics": [
        "compare_models"
      ]
    },
    {
      "page": "compare_models_global",
      "title": "Compare REM specifications with global covariate effects",
      "topics": [
        "compare_models_global"
      ]
    },
    {
      "page": "compare_models_smooth",
      "title": "Compare candidate specifications with smooth (TV / NL / TVNL) effects",
      "topics": [
        "compare_models_smooth"
      ]
    },
    {
      "page": "cpp_supported_stats",
      "title": "Endogenous statistics with a compiled fast path",
      "topics": [
        "cpp_supported_stats"
      ]
    },
    {
      "page": "dist_matrix",
      "title": "US state distance matrix",
      "topics": [
        "dist_matrix"
      ]
    },
    {
      "page": "email_eu_core",
      "title": "Email-Eu-Core temporal (single-department subset)",
      "topics": [
        "email_eu_core"
      ]
    },
    {
      "page": "endogenous_features",
      "title": "Compute endogenous event-network statistics",
      "topics": [
        "endogenous_features"
      ]
    },
    {
      "page": "gof_auxiliary",
      "title": "GOF test for an auxiliary (unmodelled) statistic",
      "topics": [
        "gof_auxiliary"
      ]
    },
    {
      "page": "gof_global",
      "title": "Omnibus GOF test via Cauchy combination",
      "topics": [
        "gof_global"
      ]
    },
    {
      "page": "gof_multivariate",
      "title": "Multivariate GOF test for smooth or random-effect covariates",
      "topics": [
        "gof_multivariate"
      ]
    },
    {
      "page": "gof_univariate",
      "title": "Goodness-of-fit test for a single FLE covariate",
      "topics": [
        "gof_univariate"
      ]
    },
    {
      "page": "hyperedge_activity",
      "title": "Activity counter for hyperedge subsets",
      "topics": [
        "hyperedge_activity"
      ]
    },
    {
      "page": "hyperedge_features",
      "title": "Endogenous features for a hyperedge event log",
      "topics": [
        "hyperedge_features"
      ]
    },
    {
      "page": "hyperedge_log",
      "title": "Build / detect / convert hyperedge event logs",
      "topics": [
        "as_dyadic_log",
        "as_hyperedge_log",
        "hyperedge_log",
        "is_hyperedge_log"
      ]
    },
    {
      "page": "hyperedge_sizes",
      "title": "Cardinality columns for a hyperedge event log",
      "topics": [
        "hyperedge_sizes"
      ]
    },
    {
      "page": "hyperedge_subrep",
      "title": "Subset repetition statistic for a hyperedge event log",
      "topics": [
        "hyperedge_subrep"
      ]
    },
    {
      "page": "martingale_residuals",
      "title": "Martingale residuals from a case-control partial-likelihood fit",
      "topics": [
        "martingale_residuals"
      ]
    },
    {
      "page": "nn_control",
      "title": "Control parameters for the neural-network backend of rem()",
      "topics": [
        "nn_control"
      ]
    },
    {
      "page": "nn_uncertainty",
      "title": "Bootstrap uncertainty for the neural rem() backend",
      "topics": [
        "nn_uncertainty"
      ]
    },
    {
      "page": "plot.nn_uncertainty",
      "title": "Plot partial-dependence uncertainty bands",
      "topics": [
        "plot.nn_uncertainty"
      ]
    },
    {
      "page": "radoslaw_email",
      "title": "Manufacturing-company email events (Michalski et al. 2014)",
      "topics": [
        "radoslaw_email"
      ]
    },
    {
      "page": "rem",
      "title": "Fit a relational (hyper)event model on preprocessed case-control data",
      "topics": [
        "rem"
      ]
    },
    {
      "page": "sample_non_events",
      "title": "Sample non-events for inference",
      "topics": [
        "sample_non_events"
      ]
    },
    {
      "page": "simulate_actor_covariates",
      "title": "Simulate exogenous actor covariates",
      "topics": [
        "simulate_actor_covariates"
      ]
    },
    {
      "page": "simulate_directed_hyperedge_events",
      "title": "Simulate directed two-mode hyperedge events",
      "topics": [
        "simulate_directed_hyperedge_events"
      ]
    },
    {
      "page": "simulate_directed_hyperevents_tvnl",
      "title": "Simulate directed hyper-events with time-varying and non-linear effects",
      "topics": [
        "simulate_directed_hyperevents_tvnl"
      ]
    },
    {
      "page": "simulate_hyperedge_events",
      "title": "Simulate undirected hyperedge events (multi-actor meetings)",
      "topics": [
        "simulate_hyperedge_events"
      ]
    },
    {
      "page": "simulate_relational_events",
      "title": "Simulate relational event sequences",
      "topics": [
        "simulate_relational_events"
      ]
    },
    {
      "page": "social_evolution_actors",
      "title": "Actor attributes for the Social Evolution study",
      "topics": [
        "social_evolution_actors"
      ]
    },
    {
      "page": "social_evolution_calls",
      "title": "Phone calls in the Social Evolution study (Madan et al. 2011)",
      "topics": [
        "social_evolution_calls"
      ]
    },
    {
      "page": "social_evolution_friendship",
      "title": "Friendship-survey events for the Social Evolution study",
      "topics": [
        "social_evolution_friendship"
      ]
    },
    {
      "page": "standardize_event_log",
      "title": "Standardize a relational event log",
      "topics": [
        "standardize_event_log"
      ]
    },
    {
      "page": "transform_recency",
      "title": "Recency transform of inter-event time gaps",
      "topics": [
        "transform_recency"
      ]
    },
    {
      "page": "widen_case_control",
      "title": "Convert a long case-control event log to wide case-1-control format",
      "topics": [
        "widen_case_control"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/amorem/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/amorem/raw/HEAD/README.md",
  "_rundeps": [
    "lattice",
    "Matrix",
    "Rcpp",
    "survival",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "endogenous-and-global.Rmd",
      "filename": "endogenous-and-global.html",
      "title": "Endogenous mechanisms and time-varying global covariates",
      "author": "Francisco Richter",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Endogenous reciprocity",
        "Time-varying global covariates",
        "Composing endogenous and global",
        "Caveat"
      ],
      "created": "2026-06-29 13:50:12",
      "modified": "2026-06-29 13:50:12",
      "commits": 1
    },
    {
      "source": "exogenous-covariates.Rmd",
      "filename": "exogenous-covariates.html",
      "title": "Exogenous dyadic covariates",
      "author": "Francisco Richter",
      "engine": "knitr::rmarkdown",
      "headings": [
        "US state distance matrix",
        "Defining a non-linear effect",
        "Simulating events with exogenous covariates",
        "Recovering the effect with a GAM",
        "Plotting estimated vs true effect"
      ],
      "created": "2026-06-29 13:50:12",
      "modified": "2026-06-29 13:50:12",
      "commits": 1
    },
    {
      "source": "model-comparison.Rmd",
      "filename": "model-comparison.html",
      "title": "Model comparison on a real REM dataset",
      "author": "Francisco Richter",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Load a bundled REM dataset",
        "2. Build candidate specifications",
        "3. Compare by AIC",
        "Multiple controls per case",
        "4. Inspect coefficients of a chosen specification",
        "5. Cross-implementation guarantee",
        "References"
      ],
      "created": "2026-06-29 13:50:12",
      "modified": "2026-06-29 13:50:12",
      "commits": 1
    },
    {
      "source": "simulation-demo.Rmd",
      "filename": "simulation-demo.html",
      "title": "Simulating relational events",
      "author": "Francisco Richter",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulating actor covariates",
        "Simulating event sequences"
      ],
      "created": "2026-06-29 13:50:12",
      "modified": "2026-06-29 13:50:12",
      "commits": 1
    },
    {
      "source": "species-invasion.Rmd",
      "filename": "species-invasion.html",
      "title": "Species invasions as a relational event process",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why model invasions as relational events?",
        "A synthetic invasion process",
        "Recovering the drivers",
        "Where to go from here"
      ],
      "created": "2026-06-29 13:50:12",
      "modified": "2026-06-29 13:50:12",
      "commits": 1
    }
  ],
  "_score": 3.4771212547196626,
  "_indexed": true,
  "_nocasepkg": "amorem",
  "_universes": [
    "cran",
    "franciscorichter"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-29T20:01:27.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "ff20547ebfd6d1a0fa8097bc158abbdf01d3c91a",
      "fileid": "e9e4e19cea3fa2a0ef8040981b007ad66d419a1dbe949acfafba675234cc0eca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28398714663"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-29T20:01:21.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "ff20547ebfd6d1a0fa8097bc158abbdf01d3c91a",
      "fileid": "312d0bb5ec9418e922a8bb3933a6cc9d25998449b799b55939e49e09afb3bb4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28398714663"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-29T20:01:33.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "ff20547ebfd6d1a0fa8097bc158abbdf01d3c91a",
      "fileid": "ef88f2eb0410b60b4ac6af8267d08086c18e1ba6f33f78a18c1cd489eb1e1988",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28398714663"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-29T20:01:22.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "ff20547ebfd6d1a0fa8097bc158abbdf01d3c91a",
      "fileid": "b245785c33a3a1fc4b723e3f640d7534dd50ba2a582c1f75a5c9c9a5aee20ade",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28398714663"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-06-29T20:01:49.000Z",
      "arch": "emscripten",
      "commit": "ff20547ebfd6d1a0fa8097bc158abbdf01d3c91a",
      "fileid": "c9781cde036a578b685e97864b724ca202c9b9ae2a8cca718cb490b8d1a9072a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28398714663"
    }
  ]
}