{"id":15893290,"url":"https://github.com/nunofachada/micompr-examples","last_synced_at":"2025-04-02T17:41:23.450Z","repository":{"id":74270390,"uuid":"57996660","full_name":"nunofachada/micompr-examples","owner":"nunofachada","description":"Usage examples for the micompr R package","archived":false,"fork":false,"pushed_at":"2017-06-22T14:54:45.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T08:15:26.617Z","etag":null,"topics":["manova","micompr","multivariate","multivariate-data","r","statistical-analysis","statistical-tests"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nunofachada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-03T19:36:56.000Z","updated_at":"2016-05-03T21:17:30.000Z","dependencies_parsed_at":"2023-07-12T04:45:19.579Z","dependency_job_id":null,"html_url":"https://github.com/nunofachada/micompr-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunofachada%2Fmicompr-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunofachada%2Fmicompr-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunofachada%2Fmicompr-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunofachada%2Fmicompr-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nunofachada","download_url":"https://codeload.github.com/nunofachada/micompr-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246863633,"owners_count":20846289,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["manova","micompr","multivariate","multivariate-data","r","statistical-analysis","statistical-tests"],"created_at":"2024-10-06T08:09:47.940Z","updated_at":"2025-04-02T17:41:23.425Z","avatar_url":"https://github.com/nunofachada.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Summary\n\nThis repository contains concrete application examples for the [micompr] [R]\npackage, which implements a procedure for comparing multivariate samples\nassociated with different groups.\n\nThese examples are described in detail in the following reference:\n\n* Fachada N, Rodrigues J, Lopes VV, Martins RC, Rosa AC. (2016) micompr: An R\nPackage for Multivariate Independent Comparison of Observations. *The R Journal*\n8(2):405–420.\nhttps://journal.r-project.org/archive/2016-2/fachada-rodrigues-lopes-etal.pdf\n\n## Examples\n\n### Simulation model with multiple outputs\n\nThe replication of a simulation model in a new context highlights differences\nbetween the conceptual and implemented models, as well as inconsistencies in\nthe conceptual model specification, promoting model verification, model\nvalidation and model credibility\n\nIn this example, provided in the [pphpc.R](pphpc.R) script, [micompr] is used\nfor comparing the outputs of two implementations of the [PPHPC] agent-based\nmodel. The compared output data is available at\nhttps://zenodo.org/record/46848. Uncompress the data to a local folder, and\nspecify the folder in the\n[`dir_data`](https://github.com/fakenmc/micompr-examples/blob/master/pphpc.R#L5)\nvariable within the script.\n\n### Monthly sunspots\n\nThis example, provided in the [sunspot.R](sunspot.R) script, uses the monthly\nsunspot data included with [R], which contains the monthly numbers of sunspots\nfrom 1749 to the present day. The example aims to answer the following question:\n_Were the solar cycles during the 1749–1859 interval significantly different\nfrom the more recent observations?_\n\n### Saugeen river flow\n\nThis example, provided in the [saugeen.R](saugeen.R) script, uses the Saugeen\nRiver daily flow data included in the [deseasonalize] [R] package. This data\nconsists of a time series of the rivers’ daily flow (m\u003csup\u003e3\u003c/sup\u003e/s) from 1915\nto 1979. The example aims to answer the following question: _is there any\nstatistical difference between the flow dynamics during the 1915–1944 and\n1950–1979 periods (perhaps due to climate change or some other factor)?_\n\n### PH\u003csup\u003e2\u003c/sup\u003e database of dermoscopic images\n\nIn this example we use the tools provided by the [micompr] package to study the\n[PH\u003csup\u003e2\u003c/sup\u003e database](https://www.fc.up.pt/addi/ph2%20database.html) of\ndermoscopic images. This image database contains a total of 200 dermoscopic\nimages of melanocytic lesions, including, from benign to more serious, 80\ncommon nevi, 80 atypical nevi, and 40 melanomas. The goal is to verify if\nimages of the three types of lesions form statistically distinguishable\nsamples.\n\nThis example is provided in the [derma.R](derma.R) script. However, the\nfollowing pre-processing of the images was performed (using [ImageMagick]\ncommand-line utilities under Linux) before comparing them with [micompr]:\n\n* Since each image comes in its own separate folder, we first copy all the\nimages to the same folder:\n\n```sh\n# List folders (within the \"PH2 Dataset images\" folder) containing images\nDIRS=`ls PH2\\ Dataset\\ images/`\n\n# Create \"images\" folder\nmkdir -p images\n\n# Copy all images to the \"images\" folder\nfor DIR in $DIRS\ndo\n  cp PH2\\ Dataset\\ images/${DIR}/${DIR}_Dermoscopic_Image/${DIR}.* images\ndone\n```\n\n* These are 8-bit RGB color images, with a resolution of purportedly 768 × 560\npixels. The following command shows this is not the case, and that the image\nsizes vary between 761 × 570 and 769 × 577:\n\n```sh\n# List all PH2 images\nIMGS=`ls images/`\n\n# Check properties of all images\nfor IMG in $IMGS\ndo\n  identify images/${IMG} | cut -d \" \" -f 3,5\ndone\n```\n\n* As such, we resize all images to 760 × 570 prior before comparing them with\n[micompr]:\n\n```sh\n# List all PH2 images\nIMGS=`ls images/`\n\n# Create a folder for the resized images\nmkdir -p images_resize\n\n# Resize all images to 760 × 570\nfor IMG in $IMGS\ndo\n  convert images/${IMG} -resize 760x570\\! images_resize/${IMG}\ndone\n```\n\nThe folder containing the resized images is specified in the\n[`imgfolder`](https://github.com/fakenmc/micompr-examples/blob/master/derma.R#L5)\nvariable within the [derma.R](derma.R) script.\n\n## License\n\n[MIT License](LICENSE)\n\n[deseasonalize]:https://cran.r-project.org/package=deseasonalize\n[micompr]:https://github.com/fakenmc/micompr\n[R]:https://www.r-project.org/\n[PPHPC]:https://github.com/fakenmc/pphpc\n[ImageMagick]:https://www.imagemagick.org/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnunofachada%2Fmicompr-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnunofachada%2Fmicompr-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnunofachada%2Fmicompr-examples/lists"}