Skip to content

Commit cde3147

Browse files
author
aliaksah
committed
= replaced with <- in suppl script
1 parent e80957a commit cde3147

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R_script/reproducible_script.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ plot(predmean(preds), df.test$semimajoraxis)
179179

180180
###############################
181181

182-
preds.P50 = predict(result.P50, df.test[,-1])
182+
preds.P50 <- predict(result.P50, df.test[,-1])
183183
rmse.P50 <- sqrt(mean((predmean(preds.P50) - df.test$semimajoraxis)^2))
184184
plot(predmean(preds.P50), df.test$semimajoraxis)
185185

@@ -255,7 +255,7 @@ probs$gen <- c(1/3,1/3,0,1/3) # Modifications and interactions!
255255

256256
params <- gen.params.gmjmcmc(ncol(df) - 1)
257257
params$feat$D <- 1 # Set depth of features to 1 (still allows for interactions)
258-
params$feat$pop.max = 10
258+
params$feat$pop.max <- 10
259259

260260

261261

@@ -301,7 +301,7 @@ result1a <- fbms(formula = z ~ 1+., data = df, transforms = transforms,
301301
family = "custom", loglik.pi = mixed.model.loglik.lme4,
302302
model_prior = list(r = 1/dim(df)[1]),
303303
extra_params = list(dr = droplevels(Zambia$dr)))
304-
time.lme4 = toc()
304+
time.lme4 <- toc()
305305

306306

307307
cat(c(time.lme4$callback_msg))
@@ -316,7 +316,7 @@ cat(c(time.lme4$callback_msg))
316316
# Specify if to run long chains under mixed effect models.
317317
# Default is false as these chains an run longer than 20 minutes
318318
# depending on the machines used.
319-
run.long.mixed = TRUE
319+
run.long.mixed <- TRUE
320320

321321
if(run.long.mixed)
322322
{

0 commit comments

Comments
 (0)