Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Level V
Cross Evaluation and Progeny Simulation with JMP Genomics, Part 2: Predictive Modeling for Breeding Values

In last week’s post, we consolidated breeding trial data into a single table using Best Linear Unbiased Prediction. The table below (barley_geno_pheno.sas7bdat) shows ~300 barley lines with phenotypic values for four traits and ~7000 genetic markers. In this post, we will use the Predictive Modeling Review tool in JMP Genomics to create multiple models and compare them via cross validation. After cross validation, we will select the most effective model and use it to create scoring code files from which we can perform Cross Evaluation and Progeny Simulation.1_input_table.png

Impute Missing Genotypes

  1. Note that in the data set shown above, some of the marker data is missing. Before running the Predictive Modeling Review tool, these missing genotypes will need to be imputed. JMP Genomics has a tool to impute missing genotypes based on a nearest neighbor sample. To access this tool select Genetics > Genetics Utilities > Impute Missing Genotypes from the Genomics Starter.
  2. On the General tab, choose barley_geno_pheno.sas7bdat as the Input SAS Data Set.
  3. Select IndID, Protein_BLUP, TW_BLUP, ERG_BLUP, and PY_BLUP as Variables to Keep in Output.
  4. In the List-Style Specification of Predictor Continuous Variables box, enter m: to designate each column beginning with the letter “m” as a marker variable.
  5. Select an Output Folder.1_gen.png
  6. There is no annotation data set for this example, so the Annotation tab can be left blank.
  7. On the Options tab, set the Number of Nearest Neighbors Samples to 25. This will use a marker’s nearest 25 neighbors to impute the missing genotype.2_opt.png
  8. In the Output tab, type barley_impute into the Output File Prefix
  9. Click Run to begin the analysis. When the process finishes, the new dataset will appear in your designated Output Folder. This imputed data set titled barley_impute_img.sas7bdat will be used for the Predictive Modeling Review input below.

Predictive Modeling Review

  1. From the Genomics Starter menu, select Predictive Modeling > Main Methods > Predictive Modeling Review. On the General tab, choose barley_impute_img.sas7bdat as the Input SAS Data Set to populate the Available Variables box.
  2. Place each of the four traits in the Dependent Variables. JMP will create models for all four traits simultaneously.
  3. In the List-Style Specification of Predictor Continuous Variables box, enter m:
  4. Select an Output Folder.2_general.png


  5. Leave the default selections on the Options tab.
  6. In the Models tab, there are 12 types of models, which are all fully customizable. For this example, choose Partial Least Squares, Partition Trees, and Ridge Regression. We will create these three models to predict each of the four traits and compare their effectiveness using cross validation.
    • Individual model settings can be adjusted by highlighting the Selected Model of choice and clicking Edit on the right of the window.
    • Also, multiple iterations of the same modeling type with different settings can be included in the same analysis.3_Models.png
  7. Highlight the Partial Least Squares model and click Edit to bring up a settings window. There are several options available for survival, reducing predictors, and locking in variables. For this example, open the Analysis. Set the Type of Dependent Variable to Continuous.
  8. Set the Maximum Number of Predictors to Use to 1000. This will limit the number of markers allowed to make a prediction.5_PLS_Settings.png
  9. Click Update Review to return to the original Predictive Modeling Review window. Select Ridge Regression, and on the Analysis tab, set the Type of Dependent Variable to Continuous and the Maximum Number of Predictors to Use to 1000.6_RR_Settings.png
  10. Again, click Update Review to return to the original Predictive Modeling Review window. Select Partition Trees now, and on the Analysis tab, set the Type of Dependent Variable to Continuous and click Update Review.
  11. The next three tabs give options for evaluating and comparing the models. We will use Cross Validation, but options are present for a Test Set if present and for Learning Curves.
  12. In the Cross Validation tab, click the box next to Perform Cross Validation Model Comparison.
  13. For the Hold-Out Method, select Random Partition. This will randomly split the data into groups and then hold out a fraction of data from each group.
  14. Specify the Hold-Out Size as K for K-Fold and set the K for K-Fold slider to 5.
    • Here, K is equal to the number of groups in a partition where 1/K equals the percentage of the total observations to hold out.
  15. Set the Number of Random Hold-Out Iterations to 5 to run the cross validation process 5 times for each model.4_CV.png
  16. Click Run to begin the analysis.


  1. When the analysis is finished, a JMP Journal window will appear with options for viewing each individual model’s results separated by the four traits, along with the results of the cross-validation model comparison.7_Journal.png
  2. The results are organized by phenotype, with detailed results for how each model performed in predicting each trait. For the model comparison statistics, click the fourth result window for each trait, starting with Cross Validation for Review All Default Predicting Protein_BLUP.
  3. The Cross Validation results include multiple methods for evaluating model effectiveness including RMSE, Harrel’s C, and Reliability Diagrams. We will asses the models based on Correlation. Higher correlation values are indicative of a more effective model. Each dot on the correlation plot represents one of the five cross validation iterations for each of the three model types. The correlation plots for each of the traits is shown below:8_CVMC.png
  4. Note that the axes of the four plots are different. According to this assessment, our Partial Least Squares and Ridge Regression models do a good job predicting Test Weight (TW) and Ergosterol Content (ERG). None of the models give an accurate prediction of Protein Content or Protein Yield (PY).
  5. The Ridge Regression model is slightly more effective at predicting TW and ERG, so we will select this model for cross evaluation. Before continuing, we will need to search the Output Folder where the results of the analysis are stored and find the Scoring Code Files for the ridge regression model. These files are SAS Program files named sas and code.png


The Predictive Modeling Review in JMP Genomics is a one-stop-shop for fitting and comparing multiple models to your data. In this example, we fit four model types, each with unique settings. Note that multiple iterations of the same model type with differing settings can be included in the same review (i.e. a general linear model with LASSO vs. stepwise selection). Note that models can also be fit individually and tested against holdout data by selecting a model type from the Genomics Starter menu. Also note that fitting models individually may give more detailed output. The results of this analysis were two-fold: First, the knowledge that the Ridge Regression model is the most effective for predicting our phenotypes and second, a scoring code file which we will used as the basis for next week’s analysis, Cross Evaluation and Progeny Simulation with JMP Genomics, Part 3: Cross Evaluation, Selection, and Progeny Simulation.

Last Modified: Aug 28, 2019 12:35 AM