{
  "_id": "6a227f76cd65a98ecbd50cf9",
  "Package": "inlamemi",
  "Type": "Package",
  "Title": "Missing Data and Measurement Error Modelling in INLA",
  "Version": "1.1.0",
  "Authors@R": "c(\nperson(\"Emma\", \"Skarstein\", email = \"emma@skarstein.no\",\nrole = c(\"cre\", \"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-6347-855X\")),\nperson(\"Stefanie\", \"Muff\",\nrole = c(\"aut\"),\ncomment = c(ORCID = \"0000-0002-8425-0757\"))\n)",
  "Description": "Facilitates fitting measurement error and missing data\nimputation models using integrated nested Laplace\napproximations, according to the method described in Skarstein,\nMartino and Muff (2023) <doi:10.1002/bimj.202300078>. See\nSkarstein and Muff (2024) <doi:10.48550/arXiv.2406.08172> for\ndetails on using the package.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.1",
  "Additional_repositories": "https://inla.r-inla-download.org/R/stable/",
  "Config/testthat/edition": "3",
  "URL": "https://emmaskarstein.github.io/inlamemi/,\nhttps://github.com/emmaSkarstein/inlamemi",
  "Language": "en-US",
  "Repository": "https://emmaskarstein.r-universe.dev",
  "Date/Publication": "2024-11-06 14:25:48 UTC",
  "RemoteUrl": "https://github.com/emmaskarstein/inlamemi",
  "RemoteRef": "HEAD",
  "RemoteSha": "018be39fbfacbbc991755961b6853c043e1c0e01",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-05 07:34:21 UTC",
    "User": "root"
  },
  "Author": "Emma Skarstein [cre, aut, cph] (ORCID:\n<https://orcid.org/0000-0002-6347-855X>),\nStefanie Muff [aut] (ORCID: <https://orcid.org/0000-0002-8425-0757>)",
  "Maintainer": "Emma Skarstein <emma@skarstein.no>",
  "MD5sum": "aa94e241d38a421390ba14a306999991",
  "_user": "emmaskarstein",
  "_type": "src",
  "_file": "inlamemi_1.1.0.tar.gz",
  "_fileid": "c050995b90528c7b5e821eabd89e99703e6fc505471b0dc4aa65befe1e42131a",
  "_filesize": 1468955,
  "_sha256": "c050995b90528c7b5e821eabd89e99703e6fc505471b0dc4aa65befe1e42131a",
  "_created": "2026-06-05T07:34:21.000Z",
  "_published": "2026-06-05T07:49:10.721Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79684304934,
      "time": 170,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7431274498"
    },
    {
      "job": 79684304913,
      "time": 168,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7431273712"
    },
    {
      "job": 79684304906,
      "time": 240,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7431345685"
    },
    {
      "job": 79684304909,
      "time": 156,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7431472032"
    },
    {
      "job": 79683850367,
      "time": 196,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7431225526"
    },
    {
      "job": 79684304971,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7431261339"
    },
    {
      "job": 79684304938,
      "time": 112,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7431259466"
    },
    {
      "job": 79684304933,
      "time": 116,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7431260597"
    },
    {
      "job": 79684304897,
      "time": 120,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7431261601"
    }
  ],
  "_buildurl": "https://github.com/r-universe/emmaskarstein/actions/runs/27001810772",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/emmaskarstein/inlamemi",
  "_commit": {
    "id": "018be39fbfacbbc991755961b6853c043e1c0e01",
    "author": "Emma Sofie Skarstein <emma@skarstein.no>",
    "committer": "Emma Sofie Skarstein <emma@skarstein.no>",
    "message": "Update CRAN-SUBMISSION\n",
    "time": 1730903148
  },
  "_maintainer": {
    "name": "Emma Skarstein",
    "email": "emma@skarstein.no",
    "login": "emmaskarstein",
    "description": "",
    "uuid": 36135547,
    "orcid": "0000-0002-6347-855X"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "INLA",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    }
  ],
  "_owner": "emmaskarstein",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "emmaskarstein",
      "count": 55,
      "uuid": 36135547
    }
  ],
  "_userbio": {
    "uuid": 36135547,
    "type": "user",
    "name": "Emma Sofie Skarstein"
  },
  "_downloads": {
    "count": 515,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/inlamemi"
  },
  "_devurl": "https://github.com/emmaskarstein/inlamemi",
  "_pkgdown": "https://emmaskarstein.github.io/inlamemi/",
  "_searchresults": 19,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/inlamemi.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/emmaskarstein/inlamemi",
  "_realowner": "emmaskarstein",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-06-24"
    },
    {
      "version": "1.1.0",
      "date": "2024-10-31"
    }
  ],
  "_exports": [
    "extract_variables_from_formula",
    "fit_inlamemi",
    "get_coef_imp",
    "get_coef_mis",
    "get_coef_moi",
    "get_imputed",
    "make_inlamemi_control.family",
    "make_inlamemi_families",
    "make_inlamemi_formula",
    "make_inlamemi_scaling_vector",
    "make_inlamemi_stacks",
    "show_data_structure"
  ],
  "_datasets": [
    {
      "name": "framingham",
      "title": "Framingham heart study data",
      "object": "framingham",
      "class": [
        "data.frame"
      ],
      "fields": [
        "disease",
        "sbp1",
        "sbp2",
        "smoking"
      ],
      "rows": 641,
      "table": true,
      "tojson": true
    },
    {
      "name": "mar_data",
      "title": "Simulated data with observation missing at random (MAR)",
      "object": "mar_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y",
        "x",
        "x_true",
        "z1",
        "z2"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "nhanes_survival",
      "title": "Survival data with repeated systolic blood pressure measurements",
      "object": "nhanes_survival",
      "class": [
        "data.frame"
      ],
      "fields": [
        "sbp1",
        "sbp2",
        "sex",
        "age",
        "smoke",
        "diabetes",
        "d",
        "t"
      ],
      "rows": 3433,
      "table": true,
      "tojson": true
    },
    {
      "name": "simple_data",
      "title": "Simple simulated data",
      "object": "simple_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y",
        "x",
        "x_true",
        "z"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "two_error_data",
      "title": "Simulated data with two covariates with classical measurement error",
      "object": "two_error_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y",
        "x1",
        "x2",
        "x1_true",
        "x2_true",
        "z"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "coef",
      "title": "Extract model coefficients",
      "topics": [
        "coef.inlamemi"
      ]
    },
    {
      "page": "fit_inlamemi",
      "title": "Fit model for measurement error and missing data in INLA",
      "topics": [
        "fit_inlamemi"
      ]
    },
    {
      "page": "framingham",
      "title": "Framingham heart study data",
      "topics": [
        "framingham"
      ]
    },
    {
      "page": "get_coef_imp",
      "title": "Extract coefficients for the imputation model (IMP)",
      "topics": [
        "get_coef_imp"
      ]
    },
    {
      "page": "get_coef_mis",
      "title": "Extract coefficients for the missingness model (MIS)",
      "topics": [
        "get_coef_mis"
      ]
    },
    {
      "page": "get_coef_moi",
      "title": "Extract coefficients for the model of interest (MOI)",
      "topics": [
        "get_coef_moi"
      ]
    },
    {
      "page": "get_imputed",
      "title": "Extract imputed values",
      "topics": [
        "get_imputed"
      ]
    },
    {
      "page": "mar_data",
      "title": "Simulated data with observation missing at random (MAR)",
      "topics": [
        "mar_data"
      ]
    },
    {
      "page": "nhanes_survival",
      "title": "Survival data with repeated systolic blood pressure measurements",
      "topics": [
        "nhanes_survival"
      ]
    },
    {
      "page": "plot.inlamemi",
      "title": "Plot model summary",
      "topics": [
        "plot.inlamemi"
      ]
    },
    {
      "page": "print",
      "title": "Print method for inlamemi",
      "topics": [
        "print.inlamemi"
      ]
    },
    {
      "page": "show_data_structure",
      "title": "Visualize the model data structure as matrices in LaTeX",
      "topics": [
        "show_data_structure"
      ]
    },
    {
      "page": "simple_data",
      "title": "Simple simulated data",
      "topics": [
        "simple_data"
      ]
    },
    {
      "page": "summary",
      "title": "Summary method for inlamemi",
      "topics": [
        "print.summary.inlamemi",
        "summary.inlamemi"
      ]
    },
    {
      "page": "two_error_data",
      "title": "Simulated data with two covariates with classical measurement error",
      "topics": [
        "two_error_data"
      ]
    }
  ],
  "_readme": "https://github.com/emmaskarstein/inlamemi/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "Visualize_model_structure.Rmd",
      "filename": "Visualize_model_structure.html",
      "title": "How are the models structured?",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Defining the model: formula + structured data stacks",
        "Structure for a classical measurement error model",
        "$$\\underbrace",
        "Structure for Berkson and classical measurement error model",
        "$$\\underbrace",
        "Accessing the stacks from the model object",
        "$$\\underbrace"
      ],
      "created": "2024-03-06 15:17:02",
      "modified": "2024-07-05 14:43:47",
      "commits": 4
    },
    {
      "source": "building_models_without_inlamemi.Rmd",
      "filename": "building_models_without_inlamemi.html",
      "title": "How to avoid using inlamemi",
      "engine": "knitr::rmarkdown",
      "headings": [
        "A short explanation of inla.stack() for hierarchical modelling",
        "Classical and Berkson measurement error and missingness",
        "A model for missing data, missing not at random"
      ],
      "created": "2024-07-05 14:43:47",
      "modified": "2024-10-31 13:26:37",
      "commits": 3
    },
    {
      "source": "Framingham_heart_study.Rmd",
      "filename": "Framingham_heart_study.html",
      "title": "Influence of systolic blood pressure on coronary heart disease",
      "engine": "knitr::rmarkdown",
      "headings": [
        "First example: A logistic regression model with repeated measurements",
        "Second example: Heteroscedastic measurement error and interaction between error variable and error free variable"
      ],
      "created": "2024-03-06 15:17:02",
      "modified": "2024-10-31 13:26:37",
      "commits": 6
    },
    {
      "source": "modifying_default_plot.Rmd",
      "filename": "modifying_default_plot.html",
      "title": "Modifying the default plot",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2024-05-31 13:46:22",
      "modified": "2024-10-31 13:26:37",
      "commits": 4
    },
    {
      "source": "multiple_error_variables.Rmd",
      "filename": "multiple_error_variables.html",
      "title": "Multiple variables with measurement error and missingness",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2024-03-06 15:17:02",
      "modified": "2024-10-31 13:26:37",
      "commits": 5
    },
    {
      "source": "simulated_examples.Rmd",
      "filename": "simulated_examples.html",
      "title": "Simulated examples",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simple example with missingness and two types of measurement error",
        "Generating the data",
        "Fitting the model",
        "Missing data only",
        "Model without imputation",
        "Model with imputation",
        "Random effect in the main model",
        "Interaction effect with error variable",
        "Logistic regression with classical error and missing data",
        "Poisson regression with classical error and missing data"
      ],
      "created": "2024-03-06 15:17:02",
      "modified": "2024-10-31 13:26:37",
      "commits": 8
    },
    {
      "source": "nhanes_survival_model.Rmd",
      "filename": "nhanes_survival_model.html",
      "title": "Survival model with repeated systolic blood pressure measurements",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2024-07-05 14:43:47",
      "modified": "2024-10-31 13:26:37",
      "commits": 2
    }
  ],
  "_score": 5.123851640967086,
  "_indexed": true,
  "_nocasepkg": "inlamemi",
  "_universes": [
    "emmaskarstein"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-06-05T07:36:43.000Z",
      "distro": "noble",
      "commit": "018be39fbfacbbc991755961b6853c043e1c0e01",
      "fileid": "8cf21e3455bd4e71b81271c02c76b15f5caf421dcfc98346bd3a871fe07aac01",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/emmaskarstein/actions/runs/27001810772"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-06-05T07:36:40.000Z",
      "distro": "noble",
      "commit": "018be39fbfacbbc991755961b6853c043e1c0e01",
      "fileid": "44f286475a12fcb72aaae6abd8978cff06bc9dce61975ca5d3cdbc3f5c064275",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/emmaskarstein/actions/runs/27001810772"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-06-05T07:40:37.000Z",
      "commit": "018be39fbfacbbc991755961b6853c043e1c0e01",
      "fileid": "b44d6995db1d42c33cd654694d68abf92ffeefd62b44f08f6a24649eccc3c5c5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/emmaskarstein/actions/runs/27001810772"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-06-05T07:47:58.000Z",
      "commit": "018be39fbfacbbc991755961b6853c043e1c0e01",
      "fileid": "51e2efd12762e926721808fd44d260a8ff7c64ebf568f757450c64babc0854db",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/emmaskarstein/actions/runs/27001810772"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.0",
      "date": "2026-06-05T07:36:35.000Z",
      "commit": "018be39fbfacbbc991755961b6853c043e1c0e01",
      "fileid": "58c5cf9c972ce4338356ed06034204432425ae6a3df10dcca2a773f35c1b1af7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/emmaskarstein/actions/runs/27001810772"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-06-05T07:35:53.000Z",
      "commit": "018be39fbfacbbc991755961b6853c043e1c0e01",
      "fileid": "2b010007227afd0b0074991c23ca3eb8c9f1a5c0099ed1ffbe5c9b5623174e90",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/emmaskarstein/actions/runs/27001810772"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-06-05T07:35:52.000Z",
      "commit": "018be39fbfacbbc991755961b6853c043e1c0e01",
      "fileid": "735fba8bd45a4b54f0fd8d2a9c2da1bcbe95ade8b269c4198486383e1e8249e3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/emmaskarstein/actions/runs/27001810772"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-06-05T07:35:52.000Z",
      "commit": "018be39fbfacbbc991755961b6853c043e1c0e01",
      "fileid": "d17185ea6342d6eac439a7bbe27060ed59a5a74a1e4b72b010a7a9817bcb1594",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/emmaskarstein/actions/runs/27001810772"
    }
  ]
}