Software

๐Ÿ“ฆ Software/Packages

This page provides links to R & LaTeX packages I have (co)authored. The most recent versions of most packages are on github. Most R packages are also available on CRAN.


๐Ÿ“š R Packages / Software


๐ŸŒพ agriTutorial

agriTutorial: Tutorial Analysis of Some Agricultural Experiments
๐Ÿ”— Website
๐Ÿ’ก Example software for the analysis of data from designed experiments, especially agricultural crop experiments. The basics of the analysis of designed experiments are discussed using real examples from agricultural field trials. A range of statistical methods using a range of R statistical packages are exemplified . The experimental data is made available as separate data sets for each example and the R analysis code is made available as example code. The example code can be readily extended, as required.


๐Ÿ“ˆ bayesammi

bayesammi: Bayesian Estimation of the Additive Main Effects and Multiplicative Interaction Model
๐Ÿ”— Website
๐Ÿง  Performs Bayesian estimation of the additive main effects and multiplicative interaction (AMMI) model. The method is explained in Crossa, J., Perez-Elizalde, S., Jarquin, D., Cotes, J.M., Viele, K., Liu, G. and Cornelius, P.L. (2011) (doi:10.2135/cropsci2010.06.0343).


๐ŸŒ baystability

baystability: Bayesian Stability Analysis of Genotype by Environment Interaction (GEI)
๐Ÿ”— Website
๐Ÿงช Performs general Bayesian estimation method of linearโ€“bilinear models for genotype ร— environment interaction. The method is explained in Perez-Elizalde, S., Jarquin, D., and Crossa, J. (2011) (doi:10.1007/s13253-011-0063-9).


๐Ÿงฌ DiallelAnalysisR

DiallelAnalysisR: Diallel Analysis with R
๐Ÿ”— Website
๐Ÿ”ฌ Performs Diallel Analysis with R using Griffingโ€™s and Haymanโ€™s approaches. Four different Methods (1: Method-I (Parents + F1โ€™s + reciprocals); 2: Method-II (Parents and one set of F1โ€™s); 3: Method-III (One set of F1โ€™s and reciprocals); 4: Method-IV (One set of F1โ€™s only)) and two Models (1: Fixed Effects Model; 2: Random Effects Model) can be applied using Griffingโ€™s approach.


๐Ÿ’ฐ dmai

dmai: Divisia Monetary Aggregates Index
๐Ÿ”— Website
๐Ÿ“Š Functions to calculate Divisia monetary aggregates index as given in Barnett, W. A. (1980) (doi:10.1016/0304-4076(80)90070-6).


๐ŸŒณ eda4treeR

eda4treeR: Experimental Design and Analysis for Tree Improvement
๐Ÿ”— Website
๐Ÿ“˜ Provides data sets and R Codes for Williams, E.R., Matheson, A.C. and Harwood, C.E. (2002). Experimental Design and Analysis for Tree Improvement, CSIRO Publishing.


๐Ÿงช gvcR

gvcR: Genotypic Variance Components
๐Ÿ”— Website
๐Ÿ” Functionalities to compute model based genetic components i.e. genotypic variance, phenotypic variance and heritability for given traits of different genotypes from replicated data using methodology explained by Burton, G. W. & Devane, E. H. (1953) (doi:10.2134/agronj1953.00021962004500100005x) and Allard, R.W. (2010, ISBN:8126524154).


๐Ÿ“Š PakNAcc

PakNAcc: โ€˜shinyโ€™ App for National Accounts
๐Ÿ”— Website | ๐Ÿš€ Shiny App
๐Ÿ“ˆ Provides a comprehensive suite of tools for analyzing Pakistanโ€™s Quarterly National Accounts data. Users can gain detailed insights into Pakistanโ€™s economic performance, visualize quarterly trends, and detect patterns and anomalies in key economic indicators. Compare sector contributionsโ€”including agriculture, industry, and servicesโ€”to understand their influence on economic growth or decline. Customize analyses by filtering and manipulating data to focus on specific areas of interest. Ideal for policymakers, researchers, and analysts aiming to make informed, data-driven decisions based on timely and detailed economic insights.


๐Ÿ‘ฅ PakPC

PakPC: โ€™shinyโ€™ App to Analyze Pakistanโ€™s Population Census Data
๐Ÿ”— Website | ๐Ÿš€ Shiny App
๐Ÿ“‰ Provides tools for analyzing Pakistanโ€™s Population Censuses data via the โ€˜PakPC2023โ€™ and โ€˜PakPC2017โ€™ R packages. Designed for researchers, policymakers, and professionals, the app enables in-depth numerical and graphical analysis, including detailed cross-tabulations and insights. With diverse statistical models and visualization options, it supports informed decision-making in social and economic policy. This tool enhances usersโ€™ ability to explore and interpret census data, providing valuable insights for effective planning and analysis across various fields.


๐Ÿ“… PakPC2017

PakPC2017: Pakistan Population Census 2017
๐Ÿ”— Website
๐Ÿ—ƒ๏ธ Provides data sets and functions for exploration of Pakistan Population Census 2017 (http://www.pbscensus.gov.pk/).


๐Ÿ“… PakPC2023

PakPC2023: Pakistan Population Census 2023
๐Ÿ”— Website
๐Ÿ—ƒ๏ธ Provides data sets and functions for exploration of Pakistan Population Census 2023 (http://www.pbscensus.gov.pk/).


๐Ÿ‘ถ PakPMICS2014Ch

PakPMICS2014Ch: Multiple Indicator Cluster Survey (MICS) 2014 Child Questionnaire Data for Punjab, Pakistan
๐Ÿ”— Website
๐Ÿง’ Provides data set and functions for exploration of Multiple Indicator Cluster Survey (MICS) 2014 Child questionnaire data for Punjab, Pakistan (http://www.mics.unicef.org/surveys).


๐Ÿ  PakPMICS2014HH

PakPMICS2014HH: Multiple Indicator Cluster Survey (MICS) 2014 Household Questionnaire Data for Punjab, Pakistan
๐Ÿ”— Website
๐Ÿก Provides data set and function for exploration of Multiple Indicator Cluster Survey (MICS) 2014 Household questionnaire data for Punjab, Pakistan (http://www.mics.unicef.org/surveys).


๐Ÿงพ PakPMICS2014HL

PakPMICS2014HL: Multiple Indicator Cluster Survey (MICS) 2014 Household Listing Questionnaire Data for Punjab, Pakistan
๐Ÿ”— Website
๐Ÿ“„ Provides data set and function for exploration of Multiple Indicator Cluster Survey 2014 Household Listing questionnaire data for Punjab, Pakistan.


๐Ÿ‘ฉ PakPMICS2014Wm

PakPMICS2014Wm: Multiple Indicator Cluster Survey (MICS) 2014 Women Questionnaire Data for Punjab, Pakistan
๐Ÿ”— Website
๐Ÿ‘ฉโ€๐Ÿ‘ง Provides data set and function for exploration of Multiple Indicator Cluster Survey 2014 Women (age 15-49 years) questionnaire data for Punjab, Pakistan.


๐Ÿงฎ PakPMICS2018

PakPMICS2018: Multiple Indicator Cluster Survey (MICS) 2017-18 Data for Punjab, Pakistan
๐Ÿ”— Website
๐Ÿ“Š Provides data set and function for exploration of Multiple Indicator Cluster Survey (MICS) 2017-18 data for Punjab, Pakistan. The results of the present survey are critically important for the purposes of SDG monitoring, as the survey produces information on 32 global SDG indicators. The data was collected from 53,840 households selected at the second stage with systematic random sampling out of a sample of 2,692 clusters selected using Probability Proportional to size sampling. Six questionnaires were used in the survey: (1) a household questionnaire to collect basic demographic information on all de jure household members (usual residents), the household, and the dwelling; (2) a water quality testing questionnaire administered in three households in each cluster of the sample; (3) a questionnaire for individual women administered in each household to all women age 15-49 years; (4) a questionnaire for individual men administered in every second household to all men age 15-49 years; (5) an under-5 questionnaire, administered to mothers (or caretakers) of all children under 5 living in the household; and (6) a questionnaire for children age 5-17 years, administered to the mother (or caretaker) of one randomly selected child age 5-17 years living in the household (http://www.mics.unicef.org/surveys).


๐Ÿ‘ถ PakPMICS2018bh

PakPMICS2018bh: Multiple Indicator Cluster Survey (MICS) 2017-18 Birth History of Children Questionnaire Data for Punjab, Pakistan
๐Ÿ”— Website
๐Ÿ“‹ Provides data set and function for exploration of Multiple Indicator Cluster Survey (MICS) 2017-18 Household questionnaire data for Punjab, Pakistan. The results of the present survey are critically important for the purposes of SDG monitoring, as the survey produces information on 32 global SDG indicators. The data was collected from 53,840 households selected at the second stage with systematic random sampling out of a sample of 2,692 clusters selected using Probability Proportional to size sampling. Six questionnaires were used in the survey: (1) a household questionnaire to collect basic demographic information on all de jure household members (usual residents), the household, and the dwelling; (2) a water quality testing questionnaire administered in three households in each cluster of the sample; (3) a questionnaire for individual women administered in each household to all women age 15-49 years; (4) a questionnaire for individual men administered in every second household to all men age 15-49 years; (5) an under-5 questionnaire, administered to mothers (or caretakers) of all children under 5 living in the household; and (6) a questionnaire for children age 5-17 years, administered to the mother (or caretaker) of one randomly selected child age 5-17 years living in the household (http://www.mics.unicef.org/surveys).


๐Ÿง’ PakPMICS2018fs

PakPMICS2018fs: Multiple Indicator Cluster Survey (MICS) 2017-18 Children Age 5-17 Questionnaire Data for Punjab, Pakistan
๐Ÿ”— Website
๐Ÿ“š Provides data set and function for exploration of Multiple Indicator Cluster Survey (MICS) 2017-18 Children Age 5-17 questionnaire data for Punjab, Pakistan. The results of the present survey are critically important for the purposes of Sustainable Development Goals (SDGs) monitoring, as the survey produces information on 32 global Sustainable Development Goals (SDGs) indicators. The data was collected from 53,840 households selected at the second stage with systematic random sampling out of a sample of 2,692 clusters selected using probability proportional to size sampling. Six questionnaires were used in the survey: (1) a household questionnaire to collect basic demographic information on all de jure household members (usual residents), the household, and the dwelling; (2) a water quality testing questionnaire administered in three households in each cluster of the sample; (3) a questionnaire for individual women administered in each household to all women age 15-49 years; (4) a questionnaire for individual men administered in every second household to all men age 15-49 years; (5) an under-5 questionnaire, administered to mothers (or caretakers) of all children under 5 living in the household; and (6) a questionnaire for children age 5-17 years, administered to the mother (or caretaker) of one randomly selected child age 5-17 years living in the household (http://www.mics.unicef.org/surveys).


๐Ÿ  PakPMICS2018hh

PakPMICS2018hh: Multiple Indicator Cluster Survey (MICS) 2017-18 Household Questionnaire Data for Punjab, Pakistan
๐Ÿ”— Website
๐Ÿ“ˆ Provides data set and function for exploration of Multiple Indicator Cluster Survey (MICS) 2017-18 Household questionnaire data for Punjab, Pakistan. The results of the present survey are critically important for the purposes of Sustainable Development Goals (SDGs) monitoring, as the survey produces information on 32 global Sustainable Development Goals (SDGs) indicators. The data was collected from 53,840 households selected at the second stage with systematic random sampling out of a sample of 2,692 clusters selected using probability proportional to size sampling. Six questionnaires were used in the survey: (1) a household questionnaire to collect basic demographic information on all de jure household members (usual residents), the household, and the dwelling; (2) a water quality testing questionnaire administered in three households in each cluster of the sample; (3) a questionnaire for individual women administered in each household to all women age 15-49 years; (4) a questionnaire for individual men administered in every second household to all men age 15-49 years; (5) an under-5 questionnaire, administered to mothers (or caretakers) of all children under 5 living in the household; and (6) a questionnaire for children age 5-17 years, administered to the mother (or caretaker) of one randomly selected child age 5-17 years living in the household (http://www.mics.unicef.org/surveys).


๐Ÿคฐ PakPMICS2018mm

PakPMICS2018mm: Multiple Indicator Cluster Survey (MICS) 2017-18 Maternal Mortality Questionnaire Data for Punjab, Pakistan
๐Ÿ”— Website
โš•๏ธ Provides data set and function for exploration of Multiple Indicator Cluster Survey (MICS) 2017-18 Maternal Mortality questionnaire data for Punjab, Pakistan. The results of the present survey are critically important for the purposes of Sustainable Development Goals (SDGs) monitoring, as the survey produces information on 32 global Sustainable Development Goals (SDGs) indicators. The data was collected from 53,840 households selected at the second stage with systematic random sampling out of a sample of 2,692 clusters selected using probability proportional to size sampling. Six questionnaires were used in the survey: (1) a household questionnaire to collect basic demographic information on all de jure household members (usual residents), the household, and the dwelling; (2) a water quality testing questionnaire administered in three households in each cluster of the sample; (3) a questionnaire for individual women administered in each household to all women age 15-49 years; (4) a questionnaire for individual men administered in every second household to all men age 15-49 years; (5) an under-5 questionnaire, administered to mothers (or caretakers) of all children under 5 living in the household; and (6) a questionnaire for children age 5-17 years, administered to the mother (or caretaker) of one randomly selected child age 5-17 years living in the household (http://www.mics.unicef.org/surveys).


๐Ÿ‘จ PakPMICS2018mn

PakPMICS2018mn: Multiple Indicator Cluster Survey (MICS) 2017-18 Men Questionnaire Data for Punjab, Pakistan
๐Ÿ”— Website
๐Ÿง” Provides data set and function for exploration of Multiple Indicator Cluster Survey (MICS) 2017-18 Men questionnaire data for Punjab, Pakistan. The results of the present survey are critically important for the purposes of Sustainable Development Goals (SDGs) monitoring, as the survey produces information on 32 global Sustainable Development Goals (SDGs) indicators. The data was collected from 53,840 households selected at the second stage with systematic random sampling out of a sample of 2,692 clusters selected using probability proportional to size sampling. Six questionnaires were used in the survey: (1) a household questionnaire to collect basic demographic information on all de jure household members (usual residents), the household, and the dwelling; (2) a water quality testing questionnaire administered in three households in each cluster of the sample; (3) a questionnaire for individual women administered in each household to all women age 15-49 years; (4) a questionnaire for individual men administered in every second household to all men age 15-49 years; (5) an under-5 questionnaire, administered to mothers (or caretakers) of all children under 5 living in the household; and (6) a questionnaire for children age 5-17 years, administered to the mother (or caretaker) of one randomly selected child age 5-17 years living in the household (http://www.mics.unicef.org/surveys).


๐Ÿงช PooledTesting

PooledTesting: A Shiny App for Pooled Testing
๐Ÿ”— Website | ๐Ÿš€ Shiny App
Pooled testing is the process of testing amalgamations of specimens in a โ€œpoolโ€ (or โ€œgroupโ€) rather than testing specimens separately. This process is used in a wide variety of applications and is an indispensable tool for laboratories when testing high volumes of clinical specimens for infectious diseases. Choosing pool sizes is an important decision that needs to be made prior to any implementation of pooled testing. The purpose of our app is to help laboratories make this decision. We provide tools to calculate the expected number of tests and to choose the โ€œbestโ€ set of pool sizes, known as the optimal testing configuration. This Shiny application allows the user to choose either hierarchical or array testing algorithms for pooled testing. For more information on these algorithms. Operating characteristics such as the expected number of tests and accuracy measures are calculated and the optimal testing configuration can be found given the overall probability of disease, the sensitivity and specificity of the assay, and other specifications.


๐Ÿ—บ๏ธ ppcSpatial

ppcSpatial: Spatial Analysis of Pakistan Population Census
๐Ÿ”— Website
Spatial Analysis for exploration of Pakistan Population Census 2017 (http://www.pbscensus.gov.pk/). It uses data from R package โ€˜PakPC2017โ€™.


๐Ÿ“Š PSLM2015

PSLM2015: Pakistan Social and Living Standards Measurement Survey 2014-15
๐Ÿ”— Website
Data and statistics of Pakistan Social and Living Standards Measurement (PSLM) survey 2014-15 from Pakistan Bureau of Statistics (http://www.pbs.gov.pk/).


๐Ÿ“ˆ qccrs

qccrs: Quality Control Charts under Repetitive Sampling
๐Ÿ”— Website
Functions to calculate Average Sample Numbers (ASN), Average Run Length (ARL1) and value of k, k1 and k2 for quality control charts under repetitive sampling as given in Aslam et al. (2014) (doi:10.7232/iems.2014.13.1.101).


๐Ÿ”„ rgsp

rgsp: Repetitive Group Sampling Plan Based on Cpk
๐Ÿ”— Website
Functions to calculate Sample Number and Average Sample Number for Repetitive Group Sampling Plan Based on Cpk as given in Aslam et al. (2013) (doi:10.1080/00949655.2012.663374).


๐ŸŒพ stability

stability: Stability Analysis of Genotype by Environment Interaction (GEI)
๐Ÿ”— Website
Functionalities to perform Stability Analysis of Genotype by Environment Interaction (GEI) to identify superior and stable genotypes under diverse environments. It performs Eberhart & Russelโ€™s ANOVA (1966) (doi:10.2135/cropsci1966.0011183X000600010011x), Finlay and Wilkinson (1963) Joint Linear Regression (doi:10.1071/AR9630742), Wricke (1962, 1964) Ecovalence, Shuklaโ€™s stability variance parameter (1972) (doi:10.1038/hdy.1972.87) and Kangโ€™s (1991) (doi:10.2134/agronj1991.00021962008300010037x) simultaneous selection for high yielding and stable parameter.


๐Ÿ“ฑ StabilityApp

StabilityApp: Stability Analysis App for GEI in Multi-Environment Trials
๐Ÿ”— Website | ๐Ÿš€ Shiny App
Provides tools for Genotype by Environment Interaction (GEI) analysis, using statistical models and visualizations to assess genotype performance across environments. It helps researchers explore interaction effects, stability, and adaptability in multi-environment trials, identifying the best-performing genotypes in different conditions. Which Win Where!


๐Ÿ“š StroupGLMM

StroupGLMM: R Codes and Datasets for Generalized Linear Mixed Models: Modern Concepts, Methods and Applications by Walter W. Stroup
๐Ÿ”— Website
R Codes and Datasets for Stroup, W. W. (2012). Generalized Linear Mixed Models: Modern Concepts, Methods and Applications, CRC Press.


๐Ÿ” SupMZ

SupMZ: Detecting Structural Change with Heteroskedasticity
๐Ÿ”— Website
Calculates the sup MZ value to detect the unknown structural break points under Heteroskedasticity as given in Ahmed et al. (2017) (doi:10.1080/03610926.2016.1235200).


๐Ÿ„ VetResearchLMM

VetResearchLMM: Linear Mixed Models: An Introduction with Applications in Veterinary Research
๐Ÿ”— Website
R Codes and Datasets for Duchateau, L. and Janssen, P. and Rowlands, G. J. (1998). Linear Mixed Models. An Introduction with applications in Veterinary Research. International Livestock Research Institute.

๐Ÿ“„ LaTeX Packages/Software

๐Ÿ“ UAFSynopsis

UAFSynopsis: LaTeX Class for University Synopsis
๐Ÿ”— Website
LaTeX class for the Synopsis of the University of Agriculture, Faisalabad-Pakistan


๐Ÿ“– UAFThesis

UAFThesis: LaTeX Class for University Thesis
๐Ÿ”— Website
LaTeX class for the Thesis of the University of Agriculture, Faisalabad-Pakistan


๐Ÿ“ฐ PakJAS

PakJAS: LaTeX Class for Pakistan Journal of Agricultural Sciences
๐Ÿ”— Website
LaTeX class for Pakistan Journal of Agricultural Sciences


No matching items