{
  "_id": "6a1e9c611d7bb097a0a6ecb3",
  "Package": "BayesRTMB",
  "Type": "Package",
  "Title": "Bayesian Inference Using 'RTMB'",
  "Version": "0.1.1",
  "Authors@R": "person(\"Hiroshi\", \"Shimizu\", email = \"simizu706@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Provides tools for Markov chain Monte Carlo (MCMC) and\nMaximum A Posteriori (MAP) estimation utilizing the 'RTMB'\npackage. It supports various statistical models including\ngeneralized linear mixed models, factor analysis, item response\ntheory, and multidimensional unfolding. The package allows\nusers to easily transition between frequentist and Bayesian\nparadigms using a unified interface. Automatic differentiation\nand Laplace approximation follow Kristensen et al. (2016)\n<doi:10.18637/jss.v070.i05>, and MCMC sampling uses the\nNo-U-Turn Sampler described by Hoffman and Gelman (2014)\n<https://jmlr.org/papers/v15/hoffman14a.html>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "URL": "https://github.com/norimune/BayesRTMB,\nhttps://norimune.github.io/BayesRTMB/",
  "BugReports": "https://github.com/norimune/BayesRTMB/issues",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.0.0",
  "RoxygenNote": "7.3.3",
  "Repository": "https://norimune.r-universe.dev",
  "Date/Publication": "2026-05-28 07:17:29 UTC",
  "RemoteUrl": "https://github.com/norimune/bayesrtmb",
  "RemoteRef": "HEAD",
  "RemoteSha": "1baeafa3b43e993fb8e221056728524510e1eef4",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-02 08:58:47 UTC",
    "User": "root"
  },
  "Author": "Hiroshi Shimizu [aut, cre]",
  "Maintainer": "Hiroshi Shimizu <simizu706@gmail.com>",
  "MD5sum": "a6156210dfc0207c1e20db3756f6266c",
  "_user": "norimune",
  "_type": "src",
  "_file": "BayesRTMB_0.1.1.tar.gz",
  "_fileid": "380eef251ffe198942f8d4a461304323305bfb085dc3079fbf62cb25c605e9ee",
  "_filesize": 1042536,
  "_sha256": "380eef251ffe198942f8d4a461304323305bfb085dc3079fbf62cb25c605e9ee",
  "_created": "2026-06-02T08:58:47.000Z",
  "_published": "2026-06-02T09:03:29.475Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79035572444,
      "time": 185,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7353409531"
    },
    {
      "job": 79035572420,
      "time": 186,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353409792"
    },
    {
      "job": 79035572464,
      "time": 203,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7353408335"
    },
    {
      "job": 79035572452,
      "time": 175,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353396102"
    },
    {
      "job": 79034909982,
      "time": 228,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353338923"
    },
    {
      "job": 79035572413,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353380521"
    },
    {
      "job": 79035572487,
      "time": 159,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7353398546"
    },
    {
      "job": 79035572517,
      "time": 167,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7353402672"
    },
    {
      "job": 79035572550,
      "time": 190,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7353410882"
    }
  ],
  "_buildurl": "https://github.com/r-universe/norimune/actions/runs/26809331427",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/norimune/bayesrtmb",
  "_commit": {
    "id": "1baeafa3b43e993fb8e221056728524510e1eef4",
    "author": "Hiroshi Shimizu <simizu706@gmail.com>",
    "committer": "Hiroshi Shimizu <simizu706@gmail.com>",
    "message": "Bump version to 0.1.1\n",
    "time": 1779952649
  },
  "_maintainer": {
    "name": "Hiroshi Shimizu",
    "email": "simizu706@gmail.com",
    "login": "norimune",
    "description": "",
    "uuid": 13142183
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "RTMB",
      "role": "Depends"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "GPArotation",
      "role": "Suggests"
    },
    {
      "package": "future",
      "role": "Suggests"
    },
    {
      "package": "future.apply",
      "role": "Suggests"
    },
    {
      "package": "progressr",
      "role": "Suggests"
    }
  ],
  "_owner": "norimune",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-14",
      "n": 67
    },
    {
      "week": "2026-15",
      "n": 257
    },
    {
      "week": "2026-16",
      "n": 48
    },
    {
      "week": "2026-17",
      "n": 82
    },
    {
      "week": "2026-18",
      "n": 61
    },
    {
      "week": "2026-19",
      "n": 66
    },
    {
      "week": "2026-20",
      "n": 40
    },
    {
      "week": "2026-21",
      "n": 46
    },
    {
      "week": "2026-22",
      "n": 6
    }
  ],
  "_tags": [
    {
      "name": "v0.1.1",
      "date": "2026-05-28"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "norimune",
      "count": 583,
      "uuid": 13142183
    }
  ],
  "_userbio": {
    "uuid": 13142183,
    "type": "user",
    "name": "norimune"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BayesRTMB"
  },
  "_devurl": "https://github.com/norimune/bayesrtmb",
  "_pkgdown": "https://norimune.github.io/BayesRTMB/",
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/BayesRTMB.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",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/norimune/bayesrtmb",
  "_realowner": "norimune",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2026-06-01"
    }
  ],
  "_exports": [
    "bayes_factor",
    "Classic_Fit",
    "conditional_effects",
    "Dim",
    "distance",
    "ess_basic",
    "ess_bulk",
    "ess_tail95",
    "fabs",
    "gaussian_process_lpdf",
    "inv_logit",
    "item_curve",
    "item_info",
    "log_det_chol",
    "log_mix",
    "log_softmax",
    "log_sum_exp",
    "log_sum_exp_matrix",
    "log1m",
    "log1m_exp",
    "log1p_exp",
    "logit",
    "lsmeans",
    "make_bw_from_ydif",
    "make_glmer_re_terms",
    "make_glmer_Z_matrix",
    "make_init_mdu",
    "make_ydif_from_bw",
    "map_est",
    "MAP_Fit",
    "MCMC_Fit",
    "plot_acf",
    "plot_conditional_effects",
    "plot_dens",
    "plot_forest",
    "plot_item_curve",
    "plot_item_info",
    "plot_lsmeans",
    "plot_mdu",
    "plot_pairs",
    "plot_test_info",
    "plot_trace",
    "prior_flat",
    "prior_jzs",
    "prior_normal",
    "prior_rhs",
    "prior_ssp",
    "prior_uniform",
    "prior_weak",
    "quad_form_chol",
    "quad_form_diag",
    "quantile95",
    "r_hat",
    "read_mcmc_csv",
    "restore_bw_from_ydif",
    "rtmb_code",
    "rtmb_corr",
    "rtmb_fa",
    "RTMB_Fit_Base",
    "rtmb_glm",
    "rtmb_glmer",
    "rtmb_irt",
    "rtmb_lm",
    "rtmb_lmer",
    "rtmb_loglinear",
    "rtmb_lrt",
    "rtmb_mdu",
    "rtmb_mediation",
    "rtmb_mixture",
    "rtmb_model",
    "RTMB_Model",
    "rtmb_table",
    "rtmb_ttest",
    "safe_rtmb_model",
    "simple_effects",
    "softmax",
    "sort_loadings",
    "squared_distance",
    "stz_basis",
    "sum_to_zero",
    "test_info",
    "to_centered_matrix",
    "to_centered_tri",
    "to_long",
    "to_wide",
    "VB_Fit"
  ],
  "_datasets": [
    {
      "name": "beverage",
      "title": "Beverage Preference Data",
      "object": "beverage",
      "class": [
        "data.frame"
      ],
      "fields": [
        "AJ",
        "BT",
        "CF",
        "CL",
        "GT",
        "OJ",
        "OT"
      ],
      "rows": 60,
      "table": true,
      "tojson": true
    },
    {
      "name": "BigFive",
      "title": "Big Five Personality Traits Data",
      "object": "BigFive",
      "class": [
        "data.frame"
      ],
      "fields": [
        "BF1",
        "BF2",
        "BF3",
        "BF4",
        "BF5",
        "BF6",
        "BF7",
        "BF8",
        "BF9",
        "BF10",
        "BF11",
        "BF12",
        "BF13",
        "BF14",
        "BF15",
        "BF16",
        "BF17",
        "BF18",
        "BF19",
        "BF20"
      ],
      "rows": 170,
      "table": true,
      "tojson": true
    },
    {
      "name": "debate",
      "title": "Debate Simulation Data",
      "object": "debate",
      "class": [
        "data.frame"
      ],
      "fields": [
        "group",
        "sat",
        "talk",
        "perf",
        "skill",
        "cond"
      ],
      "rows": 300,
      "table": true,
      "tojson": true
    },
    {
      "name": "training",
      "title": "Social Skills Training Data",
      "object": "training",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "time1",
        "time2",
        "time3",
        "time4",
        "a",
        "b",
        "age"
      ],
      "rows": 12,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ADVI_method",
      "title": "Automatic Differentiation Variational Inference (ADVI)",
      "topics": [
        "ADVI_method"
      ]
    },
    {
      "page": "bayes_factor",
      "title": "Calculate Bayes Factor",
      "topics": [
        "bayes_factor"
      ]
    },
    {
      "page": "beverage",
      "title": "Beverage Preference Data",
      "topics": [
        "beverage"
      ]
    },
    {
      "page": "BigFive",
      "title": "Big Five Personality Traits Data",
      "topics": [
        "BigFive"
      ]
    },
    {
      "page": "Classic_Fit",
      "title": "Classic fit object",
      "topics": [
        "Classic_Fit"
      ]
    },
    {
      "page": "conditional_effects",
      "title": "Calculate Conditional Effects",
      "topics": [
        "conditional_effects"
      ]
    },
    {
      "page": "conditional_effects.mcmc_fit",
      "title": "Calculate conditional effects for MCMC fit objects",
      "topics": [
        "conditional_effects.mcmc_fit"
      ]
    },
    {
      "page": "debate",
      "title": "Debate Simulation Data",
      "topics": [
        "debate"
      ]
    },
    {
      "page": "Dim",
      "title": "Define parameter dimensions and types",
      "topics": [
        "Dim"
      ]
    },
    {
      "page": "distance",
      "title": "Euclidean distance",
      "topics": [
        "distance"
      ]
    },
    {
      "page": "distributions",
      "title": "Probability Distributions for RTMB Models",
      "concept": [
        "distributions"
      ],
      "topics": [
        "distributions"
      ]
    },
    {
      "page": "ess_basic",
      "title": "Basic Effective Sample Size for a single chain or pooled chains",
      "topics": [
        "ess_basic"
      ]
    },
    {
      "page": "ess_bulk",
      "title": "Calculate Bulk Effective Sample Size",
      "topics": [
        "ess_bulk"
      ]
    },
    {
      "page": "ess_tail95",
      "title": "Calculate Tail Effective Sample Size (at 2.5% and 97.5% quantiles)",
      "topics": [
        "ess_tail95"
      ]
    },
    {
      "page": "fabs",
      "title": "Smooth absolute value function",
      "topics": [
        "fabs"
      ]
    },
    {
      "page": "gaussian_process_lpdf",
      "title": "Gaussian Process Log-Density (Squared Exponential Kernel)",
      "topics": [
        "gaussian_process_lpdf"
      ]
    },
    {
      "page": "generate_random_init",
      "title": "Generate Random Initial Values",
      "topics": [
        "generate_random_init"
      ]
    },
    {
      "page": "inv_logit",
      "title": "Inverse logit function",
      "topics": [
        "inv_logit"
      ]
    },
    {
      "page": "item_curve",
      "title": "Calculate Item Response Curve / Category Response Curve",
      "topics": [
        "item_curve"
      ]
    },
    {
      "page": "item_curve.RTMB_Fit_Base",
      "title": "Item Response Curve for RTMB_Fit_Base",
      "topics": [
        "item_curve.RTMB_Fit_Base"
      ]
    },
    {
      "page": "item_info",
      "title": "Calculate Item Information Function",
      "topics": [
        "item_info"
      ]
    },
    {
      "page": "item_info.RTMB_Fit_Base",
      "title": "Item Information Function for RTMB_Fit_Base",
      "topics": [
        "item_info.RTMB_Fit_Base"
      ]
    },
    {
      "page": "log_det_chol",
      "title": "Log determinant of a Cholesky factor",
      "topics": [
        "log_det_chol"
      ]
    },
    {
      "page": "log_mix",
      "title": "Log mixture of two probabilities",
      "topics": [
        "log_mix"
      ]
    },
    {
      "page": "log_softmax",
      "title": "Log-softmax function",
      "topics": [
        "log_softmax"
      ]
    },
    {
      "page": "log_sum_exp",
      "title": "Log-sum-exp function",
      "topics": [
        "log_sum_exp"
      ]
    },
    {
      "page": "log_sum_exp_matrix",
      "title": "Log-sum-exp function for matrices (row-wise)",
      "topics": [
        "log_sum_exp_matrix"
      ]
    },
    {
      "page": "log1m",
      "title": "Log of one minus x",
      "topics": [
        "log1m"
      ]
    },
    {
      "page": "log1m_exp",
      "title": "Log of one minus exponential of x",
      "topics": [
        "log1m_exp"
      ]
    },
    {
      "page": "log1p_exp",
      "title": "Log of one plus exponential of x",
      "topics": [
        "log1p_exp"
      ]
    },
    {
      "page": "logit",
      "title": "Logit function",
      "topics": [
        "logit"
      ]
    },
    {
      "page": "lsmeans",
      "title": "Least Squares Means (Marginal Means)",
      "topics": [
        "lsmeans"
      ]
    },
    {
      "page": "make_bw_from_ydif",
      "title": "Make Best and Worst Responses from Best-Worst Pair Indices",
      "topics": [
        "make_bw_from_ydif",
        "restore_bw_from_ydif"
      ]
    },
    {
      "page": "make_glmer_re_terms",
      "title": "Prepare GLMM Formula Components",
      "topics": [
        "make_glmer_re_terms"
      ]
    },
    {
      "page": "make_glmer_Z_matrix",
      "title": "Reconstruct an Observation-Level Random-Effect Design Matrix",
      "topics": [
        "make_glmer_Z_matrix"
      ]
    },
    {
      "page": "make_init_mdu",
      "title": "Create Initial Values for Multidimensional Unfolding",
      "topics": [
        "make_init_mdu"
      ]
    },
    {
      "page": "make_ydif_from_bw",
      "title": "Make Best-Worst Pair Indices from Best and Worst Responses",
      "topics": [
        "make_ydif_from_bw"
      ]
    },
    {
      "page": "map_est",
      "title": "Maximum A Posteriori (MAP) Estimate",
      "topics": [
        "map_est"
      ]
    },
    {
      "page": "MAP_Fit",
      "title": "MAP fit object",
      "topics": [
        "MAP_Fit"
      ]
    },
    {
      "page": "math_functions",
      "title": "Mathematical and Matrix Utility Functions for RTMB Models",
      "concept": [
        "utilities"
      ],
      "topics": [
        "math_functions"
      ]
    },
    {
      "page": "MCMC_Fit",
      "title": "MCMC fit object",
      "topics": [
        "MCMC_Fit"
      ]
    },
    {
      "page": "model_code",
      "title": "Model Code Wrapper for RTMB",
      "topics": [
        "model_code"
      ]
    },
    {
      "page": "parameter_types",
      "title": "Parameter Types and Constraints in RTMB Models",
      "topics": [
        "parameter_types"
      ]
    },
    {
      "page": "parameters_code",
      "title": "Code block for parameter definitions",
      "topics": [
        "parameters_code"
      ]
    },
    {
      "page": "plot_acf",
      "title": "Plot autocorrelation for one variable across chains",
      "topics": [
        "plot_acf"
      ]
    },
    {
      "page": "plot_conditional_effects",
      "title": "Plot conditional effects",
      "topics": [
        "plot_conditional_effects"
      ]
    },
    {
      "page": "plot_dens",
      "title": "Plot posterior densities for MCMC samples",
      "topics": [
        "plot_dens"
      ]
    },
    {
      "page": "plot_forest",
      "title": "Plot parameter estimates and credible intervals (Forest Plot)",
      "topics": [
        "plot_forest"
      ]
    },
    {
      "page": "plot_item_curve",
      "title": "Plot item/category response curves",
      "topics": [
        "plot_item_curve"
      ]
    },
    {
      "page": "plot_item_info",
      "title": "Plot item information functions",
      "topics": [
        "plot_item_info"
      ]
    },
    {
      "page": "plot_lsmeans",
      "title": "Plot least-squares marginal means",
      "topics": [
        "plot_lsmeans"
      ]
    },
    {
      "page": "plot_mdu",
      "title": "Plot Multidimensional Unfolding Configuration",
      "topics": [
        "plot_mdu"
      ]
    },
    {
      "page": "plot_pairs",
      "title": "Plot pairs for posterior samples",
      "topics": [
        "plot_pairs"
      ]
    },
    {
      "page": "plot_test_info",
      "title": "Plot test information function",
      "topics": [
        "plot_test_info"
      ]
    },
    {
      "page": "plot_trace",
      "title": "Plot MCMC trace plots",
      "topics": [
        "plot_trace"
      ]
    },
    {
      "page": "plot.ce_rtmb",
      "title": "Plot method for ce_rtmb class (Base R)",
      "topics": [
        "plot.ce_rtmb"
      ]
    },
    {
      "page": "plot.rtmb_lsmeans",
      "title": "Plot marginal means with error bars",
      "topics": [
        "plot.rtmb_lsmeans"
      ]
    },
    {
      "page": "print.bayes_factor",
      "title": "Print method for bayes_factor objects",
      "topics": [
        "print.bayes_factor"
      ]
    },
    {
      "page": "print.bayes_factor_rtmb",
      "title": "Print method for bayes_factor_rtmb objects",
      "topics": [
        "print.bayes_factor_rtmb"
      ]
    },
    {
      "page": "print.ce_rtmb",
      "title": "Print method for ce_rtmb class (automatically calls plot)",
      "topics": [
        "print.ce_rtmb"
      ]
    },
    {
      "page": "print.ce_simple",
      "title": "Print simple effects",
      "topics": [
        "print.ce_simple"
      ]
    },
    {
      "page": "print.summary_BayesRTMB",
      "title": "print for summary_BayesRTMB class",
      "topics": [
        "print.summary_BayesRTMB"
      ]
    },
    {
      "page": "prior_flat",
      "title": "Specify a flat prior",
      "topics": [
        "prior_flat"
      ]
    },
    {
      "page": "prior_jzs",
      "title": "Specify a JZS (Jeffrey-Zellner-Siow) prior for t-tests",
      "topics": [
        "prior_jzs"
      ]
    },
    {
      "page": "prior_normal",
      "title": "Specify normal/exponential priors for MAP and Bayesian inference",
      "topics": [
        "prior_normal"
      ]
    },
    {
      "page": "prior_rhs",
      "title": "Specify a Regularized Horseshoe prior for continuous shrinkage",
      "topics": [
        "prior_rhs"
      ]
    },
    {
      "page": "prior_ssp",
      "title": "Specify a Spike-and-Slab prior for variable selection",
      "topics": [
        "prior_ssp"
      ]
    },
    {
      "page": "prior_uniform",
      "title": "Specify a flat prior",
      "topics": [
        "prior_uniform"
      ]
    },
    {
      "page": "prior_weak",
      "title": "Specify a weakly informative prior",
      "topics": [
        "prior_weak"
      ]
    },
    {
      "page": "quad_form_chol",
      "title": "Quadratic form using a Cholesky factor",
      "topics": [
        "quad_form_chol"
      ]
    },
    {
      "page": "quad_form_diag",
      "title": "Quadratic form with a diagonal matrix",
      "topics": [
        "quad_form_diag"
      ]
    },
    {
      "page": "quantile95",
      "title": "Calculate 95% Quantiles",
      "topics": [
        "quantile95"
      ]
    },
    {
      "page": "r_hat",
      "title": "Calculate Rank-normalized Split-R-hat",
      "topics": [
        "r_hat"
      ]
    },
    {
      "page": "read_mcmc_csv",
      "title": "Restore MCMC Fit from CSV",
      "topics": [
        "read_mcmc_csv"
      ]
    },
    {
      "page": "rtmb_code",
      "title": "Define an RTMB Model with Stan-like Syntax",
      "topics": [
        "rtmb_code"
      ]
    },
    {
      "page": "rtmb_corr",
      "title": "Fit a Correlation Model using RTMB",
      "topics": [
        "rtmb_corr"
      ]
    },
    {
      "page": "rtmb_fa",
      "title": "RTMB-based Factor Analysis Wrapper",
      "topics": [
        "rtmb_fa"
      ]
    },
    {
      "page": "RTMB_Fit_Base",
      "title": "Base class for RTMB Fit objects",
      "topics": [
        "RTMB_Fit_Base"
      ]
    },
    {
      "page": "rtmb_glm",
      "title": "RTMB-based GLM wrapper function (no random effects)",
      "topics": [
        "rtmb_glm"
      ]
    },
    {
      "page": "rtmb_glmer",
      "title": "RTMB-based GLMM wrapper function",
      "topics": [
        "rtmb_glmer"
      ]
    },
    {
      "page": "rtmb_irt",
      "title": "RTMB-based IRT (Item Response Theory) Wrapper",
      "topics": [
        "rtmb_irt"
      ]
    },
    {
      "page": "rtmb_lm",
      "title": "RTMB-based Linear Regression wrapper function",
      "topics": [
        "rtmb_lm"
      ]
    },
    {
      "page": "rtmb_lmer",
      "title": "RTMB-based Linear Mixed Model (LMM) wrapper function",
      "topics": [
        "rtmb_lmer"
      ]
    },
    {
      "page": "rtmb_loglinear",
      "title": "RTMB-based Log-linear analysis (Poisson regression)",
      "topics": [
        "rtmb_loglinear"
      ]
    },
    {
      "page": "rtmb_lrt",
      "title": "Fit a Latent Rank Theory (LRT) Model",
      "topics": [
        "rtmb_lrt"
      ]
    },
    {
      "page": "rtmb_mdu",
      "title": "RTMB-based Multidimensional Unfolding Wrapper",
      "topics": [
        "rtmb_mdu"
      ]
    },
    {
      "page": "rtmb_mediation",
      "title": "RTMB-based Mediation Analysis Wrapper",
      "topics": [
        "rtmb_mediation"
      ]
    },
    {
      "page": "rtmb_mixture",
      "title": "Mixture Model Wrapper for RTMB",
      "topics": [
        "rtmb_mixture"
      ]
    },
    {
      "page": "rtmb_model",
      "title": "Create an RTMB_Model Object",
      "topics": [
        "rtmb_model"
      ]
    },
    {
      "page": "RTMB_Model-class",
      "title": "RTMB model object",
      "topics": [
        "RTMB_Model",
        "RTMB_Model-class"
      ]
    },
    {
      "page": "rtmb_syntax",
      "title": "Guidelines for Writing RTMB-Compatible Code",
      "topics": [
        "rtmb_syntax"
      ]
    },
    {
      "page": "rtmb_table",
      "title": "RTMB-based Contingency Table Analysis (Chi-squared Test)",
      "topics": [
        "rtmb_table"
      ]
    },
    {
      "page": "rtmb_ttest",
      "title": "RTMB-based Bayesian two-sample t-test wrapper function",
      "topics": [
        "rtmb_ttest"
      ]
    },
    {
      "page": "rtmb_wrappers",
      "title": "Common Features and Arguments of RTMB Wrapper Functions",
      "concept": [
        "wrappers"
      ],
      "topics": [
        "rtmb_wrappers"
      ]
    },
    {
      "page": "safe_rtmb_model",
      "title": "Safe RTMB model construction (with error message translation)",
      "topics": [
        "safe_rtmb_model"
      ]
    },
    {
      "page": "simple_effects",
      "title": "Calculate Simple Effects",
      "topics": [
        "simple_effects"
      ]
    },
    {
      "page": "simple_effects.mcmc_fit",
      "title": "Simple effects for MCMC fit objects",
      "topics": [
        "simple_effects.mcmc_fit"
      ]
    },
    {
      "page": "softmax",
      "title": "Softmax function",
      "topics": [
        "softmax"
      ]
    },
    {
      "page": "sort_loadings",
      "title": "Sort and display factor loadings neatly",
      "topics": [
        "sort_loadings"
      ]
    },
    {
      "page": "squared_distance",
      "title": "Squared Euclidean distance",
      "topics": [
        "squared_distance"
      ]
    },
    {
      "page": "stz_basis",
      "title": "stz basis function",
      "topics": [
        "stz_basis"
      ]
    },
    {
      "page": "sum_to_zero",
      "title": "Sum-to-zero transformation",
      "topics": [
        "sum_to_zero"
      ]
    },
    {
      "page": "summary.ce_rtmb",
      "title": "Summary method for ce_rtmb class",
      "topics": [
        "summary.ce_rtmb"
      ]
    },
    {
      "page": "test_info",
      "title": "Calculate Test Information Function",
      "topics": [
        "test_info"
      ]
    },
    {
      "page": "to_centered_matrix",
      "title": "Vector to centered matrix (RTMB compatible)",
      "topics": [
        "to_centered_matrix"
      ]
    },
    {
      "page": "to_centered_tri",
      "title": "Vector to centered triangular matrix (RTMB compatible)",
      "topics": [
        "to_centered_tri"
      ]
    },
    {
      "page": "to_long",
      "title": "Convert Wide Data to Long Format",
      "topics": [
        "to_long"
      ]
    },
    {
      "page": "to_lower_tri",
      "title": "Vector to lower triangular matrix (RTMB compatible)",
      "topics": [
        "to_lower_tri"
      ]
    },
    {
      "page": "to_wide",
      "title": "Convert Long Data to Wide Format",
      "topics": [
        "to_wide"
      ]
    },
    {
      "page": "training",
      "title": "Social Skills Training Data",
      "topics": [
        "training"
      ]
    },
    {
      "page": "transform_code",
      "title": "Transformed Code Wrapper for RTMB",
      "topics": [
        "transform_code"
      ]
    },
    {
      "page": "validate_data",
      "title": "Pre-validation of data and parameters",
      "topics": [
        "validate_data"
      ]
    },
    {
      "page": "VB_Fit",
      "title": "VB fit object",
      "topics": [
        "VB_Fit"
      ]
    }
  ],
  "_readme": "https://github.com/norimune/bayesrtmb/raw/HEAD/README.md",
  "_rundeps": [
    "lattice",
    "MASS",
    "Matrix",
    "R6",
    "Rcpp",
    "RcppEigen",
    "RTMB",
    "TMB"
  ],
  "_vignettes": [
    {
      "source": "quick_start.Rmd",
      "filename": "quick_start.html",
      "title": "BayesRTMB Quick Start",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Purpose of This Page",
        "0. Installation and Environment Check",
        "Windows Users",
        "1. Write a Minimal Model",
        "2. Create a Model Object",
        "3. Run MAP Estimation",
        "4. Inspect the Posterior with MCMC",
        "Parallel MCMC",
        "5. Visualize MCMC Results",
        "6. Multiple Regression with a Wrapper Function",
        "7. Plot an Interaction",
        "8. Run a Frequentist t Test",
        "9. Compute a Bayes Factor with a JZS Prior",
        "Next Steps"
      ],
      "created": "2026-04-27 09:09:13",
      "modified": "2026-05-22 08:12:29",
      "commits": 19
    },
    {
      "source": "ja-rtmb_internals.Rmd",
      "filename": "ja-rtmb_internals.html",
      "title": "BayesRTMB の内部構造",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. 全体の流れ",
        "2. rtmb_code の各ブロック",
        "data",
        "setup",
        "parameters",
        "transform",
        "model",
        "generate",
        "3. パラメータ表現",
        "4. ヤコビアン補正",
        "5. RTMB の自動微分オブジェクト",
        "6. 推定メソッドごとの違い",
        "sample",
        "optimize",
        "variational",
        "classic",
        "7. optimize と classic の推定結果の違い",
        "8. Laplace 近似と random",
        "9. 標準誤差と区間推定",
        "10. AD 型のコードを書くときの注意点",
        "パラメータに依存する if 文",
        "apply 系の関数",
        "setup と transform を使い分ける",
        "11. Stan、TMB、RTMB との関係",
        "12. まとめ"
      ],
      "created": "2026-04-27 10:45:53",
      "modified": "2026-05-19 13:43:54",
      "commits": 9
    },
    {
      "source": "ja-introduction.Rmd",
      "filename": "ja-introduction.html",
      "title": "BayesRTMB の概要",
      "engine": "knitr::rmarkdown",
      "headings": [
        "BayesRTMB とは",
        "記事へのリンク",
        "BayesRTMB でできること",
        "2つの入口",
        "ラッパー関数から始める",
        "自分でモデルを書く",
        "推定方法の使い分け",
        "MCMC",
        "MAP 推定",
        "変分推論",
        "頻度主義的分析",
        "ランダム効果と Laplace 近似",
        "モデル比較（bridge sampling / WAIC）",
        "bridge sampling による周辺尤度と Bayes factor",
        "WAIC によるモデル比較",
        "次のステップ"
      ],
      "created": "2026-04-23 06:46:18",
      "modified": "2026-05-20 00:32:30",
      "commits": 26
    },
    {
      "source": "ja-quick_start.Rmd",
      "filename": "ja-quick_start.html",
      "title": "BayesRTMB クイックスタート",
      "engine": "knitr::rmarkdown",
      "headings": [
        "このページの目的",
        "0. インストールと環境確認",
        "Windows ユーザー向け",
        "1. 最小モデルを書く",
        "2. モデルオブジェクトを作る",
        "3. MAP 推定を行う",
        "4. MCMC で事後分布を見る",
        "MCMC を並列化する場合",
        "5. MCMC の結果を可視化する",
        "6. ラッパー関数で重回帰を行う",
        "7. 交互作用を図で確認する",
        "8. t 検定を頻度主義的に行う",
        "9. JZS prior で Bayes factor を計算する",
        "次に読むページ"
      ],
      "created": "2026-04-23 11:36:04",
      "modified": "2026-05-22 08:12:29",
      "commits": 44
    },
    {
      "source": "rtmb_glmer.Rmd",
      "filename": "rtmb_glmer.html",
      "title": "Hierarchical Models and GLMMs with rtmb_glmer()",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Purpose",
        "1. A Minimal Random-Intercept Model",
        "2. Choosing an Inference Method",
        "MCMC",
        "MAP with Laplace Approximation",
        "Variational Inference",
        "Classical Estimation",
        "3. Formula Syntax and Visualization",
        "Random Intercepts",
        "Random Slopes",
        "Multiple Grouping Factors",
        "Conditional Effects",
        "4. Families",
        "5. Data Handling",
        "Wide Data Can Be Converted Internally",
        "Converting Variables to Factors",
        "Centering Within Cluster",
        "6. Priors",
        "prior_flat()",
        "prior_normal()",
        "prior_weak()",
        "Regularized Priors",
        "JZS Prior",
        "7. Residual Correlation",
        "8. ANOVA-Style Classical Workflows",
        "9. Inspecting Generated Code",
        "10. Model Comparison",
        "11. Related Articles"
      ],
      "created": "2026-05-18 02:13:05",
      "modified": "2026-05-19 13:43:54",
      "commits": 3
    },
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to BayesRTMB",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is BayesRTMB?",
        "Links to Articles",
        "What BayesRTMB Can Do",
        "Two Entry Points",
        "Starting from Wrapper Functions",
        "Writing Your Own Model",
        "Choosing an Inference Method",
        "MCMC",
        "MAP Estimation",
        "Variational Inference",
        "Frequentist Analysis",
        "Random Effects and Laplace Approximation",
        "Model Comparison (Bridge Sampling / WAIC)",
        "Marginal Likelihood and Bayes Factor by Bridge Sampling",
        "Model Comparison by WAIC",
        "Next Steps"
      ],
      "created": "2026-04-04 09:29:40",
      "modified": "2026-05-20 00:32:30",
      "commits": 15
    },
    {
      "source": "rtmb_internals.Rmd",
      "filename": "rtmb_internals.html",
      "title": "RTMB Internals and Inference Algorithms",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Overall Flow",
        "2. Blocks in rtmb_code()",
        "data",
        "setup",
        "parameters",
        "transform",
        "model",
        "generate",
        "3. Parameter Representation",
        "4. Jacobian Correction",
        "5. RTMB Automatic Differentiation Objects",
        "6. Inference Methods",
        "sample",
        "optimize",
        "variational",
        "classic",
        "7. optimize() vs classic()",
        "8. Laplace Approximation and random",
        "9. Standard Errors and Intervals",
        "10. Writing AD-Friendly Code",
        "Avoid parameter-dependent if statements",
        "Be careful with apply-style functions",
        "Use blocks for their intended purposes",
        "11. Relationship to Stan, TMB, and RTMB",
        "12. Summary"
      ],
      "created": "2026-05-18 02:13:05",
      "modified": "2026-05-19 13:43:54",
      "commits": 3
    },
    {
      "source": "ja-rtmb_glmer.Rmd",
      "filename": "ja-rtmb_glmer.html",
      "title": "rtmb_glmer() で階層モデル・GLMM・分散分析を書く",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. rtmb_glmer() とは",
        "2. 最小例: ランダム切片モデル",
        "3. formula の書き方と可視化",
        "ワイド型データと factors",
        "conditional_effects",
        "4. family の選び方",
        "5. 推定法の使い分け",
        "MCMC",
        "MAP",
        "VB",
        "classic",
        "6. prior の設計",
        "prior_flat",
        "prior_normal",
        "prior_weak",
        "prior_rhs と prior_ssp",
        "prior_jzs",
        "7. 順序カテゴリモデル",
        "8. 異分散と残差相関",
        "9. 分散分析・lsmeans・古典的 mixed model として使う",
        "10. print_code() で内部モデルを見る",
        "11. 実践上の注意点"
      ],
      "created": "2026-05-18 00:42:59",
      "modified": "2026-05-19 13:43:54",
      "commits": 6
    },
    {
      "source": "wrapper_functions.Rmd",
      "filename": "wrapper_functions.html",
      "title": "Wrapper Functions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. rtmb_ttest (Bayesian t-test)",
        "Checking the Generated Code",
        "Calculating the Bayes Factor",
        "2. rtmb_lm (Linear Regression Analysis)",
        "Recommended Settings for Weakly Informative Priors",
        "3. rtmb_glm (Generalized Linear Models)",
        "Available Distributions (family)",
        "4. rtmb_glmer (Generalized Linear Mixed Models)",
        "Regularization",
        "5. Post-Estimation Analysis (Interaction & Visualization)",
        "Visualization with conditional_effects()",
        "Simple Effects Analysis with simple_effects()",
        "6. rtmb_corr (Correlation Matrix Estimation)",
        "2-Variable Correlation and Bayes Factor",
        "Correlation Matrix Estimation",
        "7. rtmb_fa (Exploratory Factor Analysis)",
        "Factor Rotation",
        "Factor Scores",
        "Regularized Factor Analysis",
        "8. rtmb_irt (Item Response Theory)",
        "Analysis Example (Graded Response Model)",
        "Visualizing Item Response Curves",
        "Item and Test Information",
        "9. Missing Data Handling",
        "Example: FIML in Factor Analysis (rtmb_fa)",
        "Example: Pairwise Deletion in Correlation (rtmb_corr)",
        "Summary"
      ],
      "created": "2026-04-27 09:09:13",
      "modified": "2026-05-19 13:43:54",
      "commits": 14
    },
    {
      "source": "writing_models.Rmd",
      "filename": "writing_models.html",
      "title": "Writing Model Codes",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Overview of the Structure and Role of rtmb_code",
        "1-1. parameters block",
        "1-2. model block",
        "1-3. setup block",
        "1-4. transform block",
        "1-5. generate block",
        "2. Available Probability Distributions",
        "2-1. Common Probability Density and Mass Functions",
        "2-2. Advanced Probability Distributions",
        "2-3. Probability Distributions for Special Types",
        "3. About Parameter Types (Dim)",
        "4. About Mathematical Functions",
        "Conclusion"
      ],
      "created": "2026-04-27 09:09:13",
      "modified": "2026-05-19 13:43:54",
      "commits": 8
    },
    {
      "source": "ja-writing_models.Rmd",
      "filename": "ja-writing_models.html",
      "title": "モデルの書き方",
      "engine": "knitr::rmarkdown",
      "headings": [
        "最小モデル",
        "rtmb_code の構造",
        "setup",
        "parameters",
        "transform",
        "model",
        "generate",
        "回帰モデル",
        "中心化した回帰モデル",
        "事前分布を書く",
        "制約つきパラメータ",
        "階層モデル",
        "順序モデル",
        "混合分布モデル",
        "よくある注意点",
        "data.frame と matrix",
        "model ブロックを複雑にしすぎない",
        "AD型に対する if 文",
        "初期値",
        "random = TRUE",
        "次に読む記事"
      ],
      "created": "2026-04-25 00:48:00",
      "modified": "2026-05-19 13:43:54",
      "commits": 14
    },
    {
      "source": "ja-wrapper_functions.Rmd",
      "filename": "ja-wrapper_functions.html",
      "title": "ラッパー関数の使い方",
      "engine": "knitr::rmarkdown",
      "headings": [
        "ラッパー関数とは",
        "ラッパー関数一覧",
        "推定のイメージ",
        "頻度主義的分析",
        "S3メソッド",
        "print_code()",
        "欠損値の扱い (Missing Data Handling)",
        "分析例：因子分析における完全情報最尤法（FIML）",
        "分析例：相関分析におけるペアワイズ削除（Pairwise）",
        "次に読む記事"
      ],
      "created": "2026-04-27 00:22:24",
      "modified": "2026-05-19 13:43:54",
      "commits": 26
    }
  ],
  "_score": 5.732393759822968,
  "_indexed": true,
  "_nocasepkg": "bayesrtmb",
  "_universes": [
    "norimune"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-02T09:01:15.000Z",
      "distro": "noble",
      "commit": "1baeafa3b43e993fb8e221056728524510e1eef4",
      "fileid": "2085017bcf041f32f14c4bbb72e962a37768c3ba735fab60ad20a1df0a80cfda",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/norimune/actions/runs/26809331427"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-02T09:01:15.000Z",
      "distro": "noble",
      "commit": "1baeafa3b43e993fb8e221056728524510e1eef4",
      "fileid": "bfe04bc64d9a0df6f041f1d5983e88125313fd15172da68715145cb39969303d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/norimune/actions/runs/26809331427"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-02T09:01:42.000Z",
      "commit": "1baeafa3b43e993fb8e221056728524510e1eef4",
      "fileid": "cfe2480f4b8244930b6b7028badb2af0b918f0a80b4a463438a64f2cc0068e81",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/norimune/actions/runs/26809331427"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-02T09:01:05.000Z",
      "commit": "1baeafa3b43e993fb8e221056728524510e1eef4",
      "fileid": "747c100eb4397b930ff2ad15a2130de2019f9ae6095898fc8ed9545287709538",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/norimune/actions/runs/26809331427"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-06-02T09:01:14.000Z",
      "commit": "1baeafa3b43e993fb8e221056728524510e1eef4",
      "fileid": "9de46e0f075e9cd66acaa7752362aa442ec3868a8949b28c3acdd7f4de784440",
      "status": "success",
      "buildurl": "https://github.com/r-universe/norimune/actions/runs/26809331427"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-02T09:00:25.000Z",
      "commit": "1baeafa3b43e993fb8e221056728524510e1eef4",
      "fileid": "307f26c138afb1ce72748c68b5d4f2e70918b422d3728b7e1c14965ef3cdd671",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/norimune/actions/runs/26809331427"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-02T09:00:44.000Z",
      "commit": "1baeafa3b43e993fb8e221056728524510e1eef4",
      "fileid": "6acd60f7f84cefb2148e74f19f156914a01ae4e096eb83730fdc698d1f289f18",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/norimune/actions/runs/26809331427"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-02T09:00:39.000Z",
      "commit": "1baeafa3b43e993fb8e221056728524510e1eef4",
      "fileid": "f87eb48538807700c6113a0817b6137e7c65ae9e2f45021fa845b07a6375936d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/norimune/actions/runs/26809331427"
    }
  ]
}