summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2021-02-21 21:14:26 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2021-02-21 21:14:26 +0000
commitd1f089971629c2d4fc03d01e7c0e5f54b1693910 (patch)
tree11c1f374233b7cb8bc49a463d7db01e6a2b854d6
parentae9e6a4e40cd69a47b0e443c2d4f572d4feb29d8 (diff)
automatic import of R-CRAN-Counterfactualf34
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-Counterfactual.spec67
-rw-r--r--sources1
3 files changed, 69 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..de8cf46 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Counterfactual_1.2.tar.gz
diff --git a/R-CRAN-Counterfactual.spec b/R-CRAN-Counterfactual.spec
new file mode 100644
index 0000000..431bf89
--- /dev/null
+++ b/R-CRAN-Counterfactual.spec
@@ -0,0 +1,67 @@
+%global packname Counterfactual
+%global packver 1.2
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 1.2
+Release: 3%{?dist}%{?buildtag}
+Summary: Estimation and Inference Methods for Counterfactual Analysis
+
+License: GPL (>= 2)
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel
+Requires: R-core
+BuildArch: noarch
+BuildRequires: R-CRAN-quantreg
+BuildRequires: R-survival
+BuildRequires: R-CRAN-Hmisc
+BuildRequires: R-CRAN-foreach
+BuildRequires: R-CRAN-doRNG
+BuildRequires: R-CRAN-doParallel
+BuildRequires: R-parallel
+Requires: R-CRAN-quantreg
+Requires: R-survival
+Requires: R-CRAN-Hmisc
+Requires: R-CRAN-foreach
+Requires: R-CRAN-doRNG
+Requires: R-CRAN-doParallel
+Requires: R-parallel
+
+%description
+Implements the estimation and inference methods for counterfactual
+analysis described in Chernozhukov, Fernandez-Val and Melly (2013)
+<DOI:10.3982/ECTA10582> "Inference on Counterfactual Distributions,"
+Econometrica, 81(6). The counterfactual distributions considered are the
+result of changing either the marginal distribution of covariates related
+to the outcome variable of interest, or the conditional distribution of
+the outcome given the covariates. They can be applied to estimate quantile
+treatment effects and wage decompositions.
+
+%prep
+%setup -q -c -n %{packname}
+
+
+%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
+%dir %{rlibdir}/%{packname}
+%doc %{rlibdir}/%{packname}/html
+%{rlibdir}/%{packname}/Meta
+%{rlibdir}/%{packname}/help
+%{rlibdir}/%{packname}/data
+%{rlibdir}/%{packname}/DESCRIPTION
+%{rlibdir}/%{packname}/NAMESPACE
+%{rlibdir}/%{packname}/R
+%doc %{rlibdir}/%{packname}/doc
+%{rlibdir}/%{packname}/INDEX
diff --git a/sources b/sources
new file mode 100644
index 0000000..a87cec4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8c38fe6b769da8ba2b0224d859b59c85 Counterfactual_1.2.tar.gz