{
  "_id": "6a1bde4a1d7bb097a0a17a5e",
  "Package": "EMOTIONS",
  "Type": "Package",
  "Title": "Ensemble Models for Lactation Curves",
  "Version": "1.3",
  "Authors@R": "c(person(given = \"Pablo\",\nfamily = \"Fonseca\",\nrole = c(\"aut\", \"cre\"),\nemail = \"p.fonseca@csic.es\"),person(\"Marcos\", \"Prates\", email = \"marcosop@gmail.com\", role = \"aut\"),\nperson(\"Aroa\", \"Suarez-Vega\", email = \"asuav@unileon.es\", role = \"aut\"),\nperson(\"Ruth Arribas\", \"Gonzalo\", email = \"rarrg@unileon.es\", role = \"aut\"),\nperson(\"Beatriz\", \"Gutierrez-Gil\", email = \"beatriz.gutierrez@unileon.es\", role = \"aut\"),\nperson(\"Juan José\", \"Arranz\", email = \"jjarrs@unileon.es\", role = \"aut\"))",
  "Description": "Lactation curves describe temporal changes in milk yield\nand are key to breeding and managing dairy animals more\nefficiently. The use of ensemble modeling, which consists of\ncombining predictions from multiple models, has the potential\nto yields more accurate and robust estimates of lactation\npatterns than relying solely on single model estimates. The\npackage EMOTIONS fits 47 models for lactation curves and\ncreates ensemble models using model averaging based on Akaike\ninformation criterion (AIC), Bayesian information criterion\n(BIC), root mean square percentage error (RMSPE) and mean\nsquared error (MAE), variance of the predictions, cosine\nsimilarity for each model's predictions, and Bayesian Model\nAverage (BMA). The daily production values predicted through\nthe ensemble models can be used to estimate resilience\nindicators in the package. The package allows the graphical\nvisualization of the model ranks and the predicted lactation\ncurves. Additionally, the packages allows the user to detect\nmilk loss events and estimate residual-based resilience\nindicators.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-31 07:04:29 UTC",
    "User": "root"
  },
  "Author": "Pablo Fonseca [aut, cre], Marcos Prates [aut], Aroa Suarez-Vega\n[aut], Ruth Arribas Gonzalo [aut], Beatriz Gutierrez-Gil [aut],\nJuan José Arranz [aut]",
  "Maintainer": "Pablo Fonseca <p.fonseca@csic.es>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-04-01 21:04:06 UTC",
  "RemoteUrl": "https://github.com/cran/EMOTIONS",
  "RemoteRef": "HEAD",
  "RemoteSha": "9b5b5dd3456f1f00dc7fd61893969e26e2972f71",
  "MD5sum": "f581b5c84492bcb8409da740728941c4",
  "_user": "cran",
  "_type": "src",
  "_file": "EMOTIONS_1.3.tar.gz",
  "_fileid": "ed67b820ec938da3e8fe6796fac66b95c84ed9d24318765d05a9174667fb788f",
  "_filesize": 1422622,
  "_sha256": "ed67b820ec938da3e8fe6796fac66b95c84ed9d24318765d05a9174667fb788f",
  "_created": "2026-05-31T07:04:29.000Z",
  "_published": "2026-05-31T07:07:54.962Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78707442105,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7314668666"
    },
    {
      "job": 78707442101,
      "time": 166,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7314668527"
    },
    {
      "job": 78707238873,
      "time": 235,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7314651364"
    },
    {
      "job": 78707442120,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7314663552"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26705976014",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/EMOTIONS",
  "_commit": {
    "id": "9b5b5dd3456f1f00dc7fd61893969e26e2972f71",
    "author": "Pablo Fonseca <p.fonseca@csic.es>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.3\n",
    "time": 1775077446
  },
  "_maintainer": {
    "name": "Pablo Fonseca",
    "email": "p.fonseca@csic.es"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "orthopolynom",
      "role": "Imports"
    },
    {
      "package": "quantreg",
      "role": "Imports"
    },
    {
      "package": "minpack.lm",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggridges",
      "role": "Imports"
    },
    {
      "package": "parameters",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "splines",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-25",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-13",
      "n": 1
    },
    {
      "week": "2026-14",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0",
      "date": "2025-06-18"
    },
    {
      "name": "1.1",
      "date": "2026-01-28"
    },
    {
      "name": "1.2",
      "date": "2026-03-27"
    },
    {
      "name": "1.3",
      "date": "2026-04-01"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 169,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/EMOTIONS"
  },
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/EMOTIONS.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0",
      "date": "2025-06-18"
    },
    {
      "version": "1.1",
      "date": "2026-01-28"
    },
    {
      "version": "1.2",
      "date": "2026-03-27"
    },
    {
      "version": "1.3",
      "date": "2026-04-01"
    }
  ],
  "_exports": [
    "imp_my",
    "LacCurveFit",
    "milkloss_detect",
    "ModelRankRange",
    "PlotMilkLoss",
    "PlotWeightLac",
    "ResInd",
    "RidgeModels"
  ],
  "_datasets": [
    {
      "name": "LacData",
      "title": "A data frame containing the daily milk yield for 100 individuals up to 210 days in milk",
      "object": "LacData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "DIM",
        "DMY"
      ],
      "rows": 21550,
      "table": true,
      "tojson": true
    },
    {
      "name": "model_pars",
      "title": "A data frame containing the models included in the EMOTIONS package that can have the parameters edited",
      "object": "model_pars",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Model_acronym",
        "Parameters"
      ],
      "rows": 42,
      "table": true,
      "tojson": true
    },
    {
      "name": "models_EMOTIONS",
      "title": "A data frame containing the daily milk yield for 100 individuals up to 210 days in milk",
      "object": "models_EMOTIONS",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Model",
        "Model_acronym",
        "Authors",
        "Year",
        "Reference"
      ],
      "rows": 47,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "imp_my",
      "title": "Impute missing daily milk yields using the ensemble created",
      "topics": [
        "imp_my"
      ]
    },
    {
      "page": "LacCurveFit",
      "title": "A wrap function to the ModelsLac function that allows the fit of lactation curve models based on daily production and days in milk records simultaneously for a list of animals",
      "topics": [
        "LacCurveFit"
      ]
    },
    {
      "page": "milkloss_detect",
      "title": "Identify milk loss events and resilience indicators from daily milk yields",
      "topics": [
        "milkloss_detect"
      ]
    },
    {
      "page": "ModelRankRange",
      "title": "Create a line plot that shows the range of the ranks obtained for each model across the individuals",
      "topics": [
        "ModelRankRange"
      ]
    },
    {
      "page": "ModelsLac",
      "title": "Performs the model fitting and the weight assignment based on different strategies for each individual ID",
      "topics": [
        "ModelsLac"
      ]
    },
    {
      "page": "PlotMilkLoss",
      "title": "Plot the actual daily milk daily production and the predicted values highlighting the detected milk loss events",
      "topics": [
        "PlotMilkLoss"
      ]
    },
    {
      "page": "PlotWeightLac",
      "title": "Plot the actual daily milk daily production and the predicted values obtained by the ensemble model",
      "topics": [
        "PlotWeightLac"
      ]
    },
    {
      "page": "ResInd",
      "title": "A function to estimate resilience estimators (logarithm of variance, lag1 autocorrelation and skewness) based on daily milk production records",
      "topics": [
        "ResInd"
      ]
    },
    {
      "page": "RidgeModels",
      "title": "The function RidgeModels allows the visualization of the distribution of model's ranks across individuals using ridge density plots",
      "topics": [
        "RidgeModels"
      ]
    }
  ],
  "_readme": "https://github.com/cran/EMOTIONS/raw/HEAD/README.md",
  "_rundeps": [
    "bayestestR",
    "cli",
    "cpp11",
    "datawizard",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "ggridges",
    "glue",
    "gtable",
    "insight",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "minpack.lm",
    "orthopolynom",
    "parameters",
    "pillar",
    "pkgconfig",
    "polynom",
    "purrr",
    "quantreg",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "EMOTIONS.Rmd",
      "filename": "EMOTIONS.html",
      "title": "EMOTIONS: Ensemble Models fOr lacTatION curveS",
      "author": "Pablo A. S. Fonseca, Marcos Prates, Aroa Suárez-Vega, Ruth Arribas Gonzalo, Beatriz Gutierrez-Gil, Juan José Arranz",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Installing the Package",
        "Analysis",
        "Loading the Package",
        "Input Data",
        "Fitting Lactation Curve Models and Generating Ensembles",
        "Available Weighting Methods",
        "Visualizing Model Ranking",
        "Plotting Actual vs. Predicted Daily Milk Yield",
        "Customizing Model Selection",
        "Evaluating Model Ranks",
        "Customizing Model Parameters",
        "Calculating Resilience Indicators",
        "Imputation of missing records",
        "Identification of milk loss events and estimation of resilience indicators"
      ],
      "created": "2025-06-18 13:04:03",
      "modified": "2026-01-28 10:30:11",
      "commits": 2
    }
  ],
  "_score": 3.3010299956639813,
  "_indexed": true,
  "_nocasepkg": "emotions",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3",
      "date": "2026-05-31T07:06:53.000Z",
      "distro": "noble",
      "commit": "9b5b5dd3456f1f00dc7fd61893969e26e2972f71",
      "fileid": "a0aad5159a1b61b68ebf5dbd518c99493fbf82d42ee2cb3de18cdb6757b3dfe7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26705976014"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.3",
      "date": "2026-05-31T07:06:51.000Z",
      "distro": "noble",
      "commit": "9b5b5dd3456f1f00dc7fd61893969e26e2972f71",
      "fileid": "2c61c4be3dd1d41f3f48de8e26bde01a87d5044497c94f1053671e4825ad9c56",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26705976014"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3",
      "date": "2026-05-31T07:06:48.000Z",
      "commit": "9b5b5dd3456f1f00dc7fd61893969e26e2972f71",
      "fileid": "132517ccac41a95524600990d2d0d2681bfc2d093b4a3acd28bba0990c66e5ef",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26705976014"
    }
  ]
}