%global __brp_check_rpaths %{nil} %global packname mcb %global packver 0.1.15 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.1.15 Release: 3%{?dist}%{?buildtag} Summary: Model Confidence Bounds License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.6.0 Requires: R-core >= 3.6.0 BuildArch: noarch BuildRequires: R-parallel BuildRequires: R-methods BuildRequires: R-CRAN-leaps BuildRequires: R-CRAN-lars BuildRequires: R-MASS BuildRequires: R-CRAN-glmnet BuildRequires: R-CRAN-ncvreg BuildRequires: R-CRAN-smoothmest BuildRequires: R-CRAN-ggplot2 BuildRequires: R-CRAN-reshape2 Requires: R-parallel Requires: R-methods Requires: R-CRAN-leaps Requires: R-CRAN-lars Requires: R-MASS Requires: R-CRAN-glmnet Requires: R-CRAN-ncvreg Requires: R-CRAN-smoothmest Requires: R-CRAN-ggplot2 Requires: R-CRAN-reshape2 %description When choosing proper variable selection methods, it is important to consider the uncertainty of a certain method. The model confidence bound for variable selection identifies two nested models (upper and lower confidence bound models) containing the true model at a given confidence level. A good variable selection method is the one of which the model confidence bound under a certain confidence level has the shortest width. When visualizing the variability of model selection and comparing different model selection procedures, model uncertainty curve is a good graphical tool. A good variable selection method is the one of whose model uncertainty curve will tend to arch towards the upper left corner. This function aims to obtain the model confidence bound and draw the model uncertainty curve of certain single model selection method under a coverage rate equal or little higher than user-given confidential level. About what model confidence bound is and how it work please see Li,Y., Luo,Y., Ferrari,D., Hu,X. and Qin,Y. (2019) Model Confidence Bounds for Variable Selection. Biometrics, 75:392-403. . Besides, 'flare' is needed only you apply the SQRT or LAD method ('mcb' totally has 8 methods). Although 'flare' has been archived by CRAN, you can still get it in and the latest version is useful for 'mcb'. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; %build %install mkdir -p %{buildroot}%{rlibdir} %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname} test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) rm -f %{buildroot}%{rlibdir}/R.css %files %{rlibdir}/%{packname}