{
  "_id": "6a616c0af673e46fff56b571",
  "Package": "SimTimeVar",
  "Type": "Package",
  "Title": "Simulate Longitudinal Dataset with Time-Varying Correlated\nCovariates",
  "Version": "1.0.0",
  "Date": "2017-09-07",
  "Author": "Maya B. Mathur, Kristopher Kapphahn, Ariadna Garcia, Manisha\nDesai, Maria E. Montez-Rath",
  "Maintainer": "Maya B. Mathur <mmathur@stanford.edu>",
  "Description": "Flexibly simulates a dataset with time-varying covariates\nwith user-specified exchangeable correlation structures across\nand within clusters. Covariates can be normal or binary and can\nbe static within a cluster or time-varying. Time-varying normal\nvariables can optionally have linear trajectories within each\ncluster. See ?make_one_dataset for the main wrapper function.\nSee Montez-Rath et al. <arXiv:1709.10074> for methodological\ndetails.",
  "LazyData": "true",
  "License": "GPL-2",
  "RoxygenNote": "6.0.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-23 01:15:13 UTC",
    "User": "root"
  },
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://cranhaven.r-universe.dev",
  "Date/Publication": "2026-07-22 18:02:00 UTC",
  "RemoteUrl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "RemoteRef": "package/SimTimeVar",
  "RemoteSha": "5f686a137c551f5f436f3dfb480d2aa4951c01be",
  "RemoteSubdir": "SimTimeVar",
  "_user": "cranhaven",
  "_type": "src",
  "_file": "SimTimeVar_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/62bc7b70fb7fb5d1153b12516b2714a4b9994e986a79f671c508ef7a3ecbae3e",
  "_filesize": 149346,
  "_sha256": "62bc7b70fb7fb5d1153b12516b2714a4b9994e986a79f671c508ef7a3ecbae3e",
  "_expires": "2026-10-31T01:19:04.000Z",
  "_created": "2026-07-23T01:15:13.000Z",
  "_published": "2026-07-23T13:15:32.117Z",
  "_jobs": [
    {
      "job": 89093784702,
      "time": 193,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8549824524"
    },
    {
      "job": 89093784727,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8549817595"
    },
    {
      "job": 89093784733,
      "time": 83,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8549797341"
    },
    {
      "job": 89093784713,
      "time": 92,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8549799574"
    },
    {
      "job": 89093323604,
      "time": 209,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8549775567"
    },
    {
      "job": 89093784731,
      "time": 122,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8549807050"
    },
    {
      "job": 89093784734,
      "time": 77,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8549796031"
    },
    {
      "job": 89093784748,
      "time": 72,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8549794735"
    },
    {
      "job": 89093784758,
      "time": 66,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8549793236"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cranhaven/actions/runs/29971162796",
  "_status": "success",
  "_upstream": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_commit": {
    "id": "5f686a137c551f5f436f3dfb480d2aa4951c01be",
    "author": "GitHub Action <action@github.com>",
    "committer": "GitHub Action <action@github.com>",
    "message": "Add SimTimeVar to CRANhaven, because archived on 2026-07-22 18:02:00 +0000\n",
    "time": 1784743320
  },
  "_maintainer": {
    "name": "Maya B. Mathur",
    "email": "mmathur@stanford.edu",
    "login": "mayamathur",
    "description": "",
    "uuid": 8933150
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "metafor",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "ICC",
      "role": "Imports"
    },
    {
      "package": "miscTools",
      "role": "Imports"
    },
    {
      "package": "car",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "corpcor",
      "role": "Imports"
    },
    {
      "package": "psych",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    }
  ],
  "_owner": "cranhaven",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-30",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "archived",
    "packages",
    "r-universe"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "henrikbengtsson",
      "count": 183,
      "uuid": 1616850
    }
  ],
  "_userbio": {
    "uuid": 161993010,
    "type": "organization",
    "name": "cranhaven",
    "followers": 3,
    "description": "CRANhaven - Repository for Recently Archived CRAN Packages"
  },
  "_downloads": {
    "count": 192,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SimTimeVar"
  },
  "_devurl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/SimTimeVar.html",
    "manual.pdf"
  ],
  "_realowner": "mayamathur",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2017-09-30"
    }
  ],
  "_exports": [
    "add_one_categorical",
    "add_time_function_vars",
    "BN.rBound",
    "closest",
    "complete_parameters",
    "expand_matrix",
    "expand_subjects",
    "has_drug_suffix",
    "make_one_dataset",
    "make_one_linear_pred",
    "mod.jointly.generate.binary.normal",
    "override_static",
    "override_tbin_probs",
    "proportionize",
    "upper_tri_vec"
  ],
  "_datasets": [
    {
      "name": "cat.params",
      "title": "An example dataframe for categorical variable parameters",
      "object": "cat.params",
      "class": [
        "data.frame"
      ],
      "fields": [
        "level",
        "parameter",
        "beta"
      ],
      "rows": 5,
      "table": true,
      "tojson": true
    },
    {
      "name": "params",
      "title": "An example parameters dataframe",
      "object": "params",
      "class": [
        "data.frame"
      ],
      "fields": [
        "name",
        "type",
        "across.mean",
        "across.SD",
        "across.var",
        "within.var",
        "prop",
        "error.SD"
      ],
      "rows": 12,
      "table": true,
      "tojson": true
    },
    {
      "name": "pcor",
      "title": "An example across-cluster correlation dataframe",
      "object": "pcor",
      "class": [
        "data.frame"
      ],
      "fields": [
        "drug1_s",
        "drug2_s",
        "male",
        "drug1",
        "drug2",
        "height",
        "weight",
        "bp",
        "bp_slope"
      ],
      "rows": 9,
      "table": true,
      "tojson": true
    },
    {
      "name": "wcor",
      "title": "An example within-cluster correlation dataframe",
      "object": "wcor",
      "class": [
        "data.frame"
      ],
      "fields": [
        "drug1",
        "drug2",
        "height",
        "weight",
        "bp",
        "bp_slope"
      ],
      "rows": 6,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_one_categorical",
      "title": "Generate linear predictor from logistic model",
      "topics": [
        "add_one_categorical"
      ]
    },
    {
      "page": "add_time_function_vars",
      "title": "Creates linear time-function variables",
      "topics": [
        "add_time_function_vars"
      ]
    },
    {
      "page": "BN.rBound",
      "title": "Maximum correlation between binary and normal random variables",
      "topics": [
        "BN.rBound"
      ]
    },
    {
      "page": "cat.params",
      "title": "An example dataframe for categorical variable parameters",
      "topics": [
        "cat.params"
      ]
    },
    {
      "page": "closest",
      "title": "Return closest value",
      "topics": [
        "closest"
      ]
    },
    {
      "page": "complete_parameters",
      "title": "Fill in partially incomplete parameters matrix",
      "topics": [
        "complete_parameters"
      ]
    },
    {
      "page": "expand_matrix",
      "title": "Longitudinally expand a matrix of single observations by cluster",
      "topics": [
        "expand_matrix"
      ]
    },
    {
      "page": "expand_subjects",
      "title": "Longitudinally expand a cluster",
      "topics": [
        "expand_subjects"
      ]
    },
    {
      "page": "has_drug_suffix",
      "title": "Checks whether string has \"_s\" suffix",
      "topics": [
        "has_drug_suffix"
      ]
    },
    {
      "page": "make_one_dataset",
      "title": "Simulate time-varying covariates",
      "topics": [
        "make_one_dataset"
      ]
    },
    {
      "page": "make_one_linear_pred",
      "title": "Generate linear predictor from logistic model",
      "topics": [
        "make_one_linear_pred"
      ]
    },
    {
      "page": "mod.jointly.generate.binary.normal",
      "title": "Return closest value",
      "topics": [
        "mod.jointly.generate.binary.normal"
      ]
    },
    {
      "page": "override_static",
      "title": "Override static variable",
      "topics": [
        "override_static"
      ]
    },
    {
      "page": "override_tbin_probs",
      "title": "Override probabilities for time-varying binary variables",
      "topics": [
        "override_tbin_probs"
      ]
    },
    {
      "page": "params",
      "title": "An example parameters dataframe",
      "topics": [
        "params"
      ]
    },
    {
      "page": "pcor",
      "title": "An example across-cluster correlation dataframe",
      "topics": [
        "pcor"
      ]
    },
    {
      "page": "proportionize",
      "title": "Turn a number into a valid proportion",
      "topics": [
        "proportionize"
      ]
    },
    {
      "page": "upper_tri_vec",
      "title": "Turn symmetric matrix into vector",
      "topics": [
        "upper_tri_vec"
      ]
    },
    {
      "page": "wcor",
      "title": "An example within-cluster correlation dataframe",
      "topics": [
        "wcor"
      ]
    }
  ],
  "_rundeps": [
    "abind",
    "backports",
    "boot",
    "broom",
    "car",
    "carData",
    "cli",
    "colorspace",
    "corpcor",
    "cowplot",
    "cpp11",
    "Deriv",
    "digest",
    "doBy",
    "dplyr",
    "farver",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "glue",
    "GPArotation",
    "gtable",
    "ICC",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "mathjaxr",
    "Matrix",
    "MatrixModels",
    "metadat",
    "metafor",
    "mgcv",
    "minqa",
    "miscTools",
    "mnormt",
    "modelr",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbapply",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "plyr",
    "psych",
    "purrr",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "S7",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_score": 1.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "simtimevar",
  "_universes": [
    "cranhaven"
  ],
  "_indexurl": "https://mayamathur.r-universe.dev/SimTimeVar",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-07-23T01:18:25.000Z",
      "distro": "resolute",
      "commit": "5f686a137c551f5f436f3dfb480d2aa4951c01be",
      "fileid": "https://r2.ropensci.org/8b8d19c64c23456e4b1da6ce6c2bcad6d04dc2cb25a7ee3ef78c7cf867ca352a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/29971162796"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-07-23T01:17:59.000Z",
      "distro": "resolute",
      "commit": "5f686a137c551f5f436f3dfb480d2aa4951c01be",
      "fileid": "https://r2.ropensci.org/f9f24015f6c5c06206c8fb46dbc9a0426f41a714aabdb4377d6b0b5cf536838b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/29971162796"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-07-23T01:16:42.000Z",
      "commit": "5f686a137c551f5f436f3dfb480d2aa4951c01be",
      "fileid": "https://r2.ropensci.org/742b00f2aab5feb9c856c1f41315907e0be7997e10c5f3f2513d04c097db4580",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/29971162796"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-07-23T01:16:49.000Z",
      "commit": "5f686a137c551f5f436f3dfb480d2aa4951c01be",
      "fileid": "https://r2.ropensci.org/bbaf7705330e9cee5a498c7ec2caa0cc6684f625e2925142c44f90b7071cebc5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/29971162796"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-07-23T01:17:30.000Z",
      "commit": "5f686a137c551f5f436f3dfb480d2aa4951c01be",
      "fileid": "https://r2.ropensci.org/684249083abdf34a98753aa26bd23e1cc5b021dbec9f91ff35fb6b025da3bbb6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/29971162796"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-23T01:16:27.000Z",
      "commit": "5f686a137c551f5f436f3dfb480d2aa4951c01be",
      "fileid": "https://r2.ropensci.org/a5090a95dcb32c3f879a5a322e50f5dbd49e0176bdb42240957e6503f956f3f5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/29971162796"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-23T01:16:22.000Z",
      "commit": "5f686a137c551f5f436f3dfb480d2aa4951c01be",
      "fileid": "https://r2.ropensci.org/e29e06a147aae68ebf145c3aebd88d057767fb80ae87afb29db0a7dbb223c9f8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/29971162796"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-23T01:16:17.000Z",
      "commit": "5f686a137c551f5f436f3dfb480d2aa4951c01be",
      "fileid": "https://r2.ropensci.org/de4bdbf1eb34c31c8a176cf51508de5cc7b09aac6f1ded26f563efe1190bd1b9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/29971162796"
    }
  ]
}