Skip to content

Commit 25275ab

Browse files
committed
editing replication scripts
1 parent 389d595 commit 25275ab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

R/lpcde_comparison.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ np_est_q3 = fitted(npcdens(exdat=rep(x_evals[4], 30), eydat=lpcde_est_q3$Estimat
3939
#plotting all CDEs
4040
# Figure 4(a)
4141
plot(1, main=TeX(r'($f(y|x=1.6)$)'), xlab="Sepal length", ylab="density", ylim=c(-0.8, 1.6), xlim=c(4.8, 6.9), cex=1.5)
42-
lines(lpcde_est_q1$Estimate[, 1], lpcde_est_q1$Estimate[,3])
42+
#lines(lpcde_est_q1$Estimate[, 1], lpcde_est_q1$Estimate[,3])
4343
lines(hdr_est_q1$y, hdr_est_q1$z, col=2)
4444
lines(lpcde_est_q1$Estimate[, 1], np_est_q1, col=3)
4545
legend('topright',lwd=1, legend=c('lpcde', 'hdrcde', 'np'), col=c(1,2,3))

R/replication_compiled.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
#load package
99
library("lpcde")
1010

11-
#Setting up simulation
11+
# Setting up simulation
12+
RNGkind("L'Ecuyer-CMRG")
1213
set.seed(30)
1314
n=1000
1415
x_data = matrix(rnorm(n, mean=0, sd=1))

0 commit comments

Comments
 (0)