cjerzak commited on
Commit
43847a8
Β·
verified Β·
1 Parent(s): 20275d5

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +26 -0
app.R CHANGED
@@ -31,6 +31,9 @@
31
  # Clean up out-of-range values
32
  wealth_stack[wealth_stack <= 0 | wealth_stack > 1] <- NA
33
 
 
 
 
34
  all_vals <- values(wealth_stack)
35
  all_vals <- all_vals[!is.na(all_vals)]
36
  q_breaks_legend <- quantile(all_vals, probs = seq(0, 1, 0.2), na.rm = TRUE)
@@ -417,6 +420,7 @@
417
  )
418
  )
419
  ),
 
420
  # Time series at clicked location
421
  fluidRow(
422
  column(
@@ -430,6 +434,28 @@
430
  "Tap on the map to see the IWI time-series (1990–2019) for that location.")
431
  )
432
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
433
  )
434
  ),
435
 
 
31
  # Clean up out-of-range values
32
  wealth_stack[wealth_stack <= 0 | wealth_stack > 1] <- NA
33
 
34
+ # Scale by 100
35
+ # wealth_stack <- 100*wealth_stack
36
+
37
  all_vals <- values(wealth_stack)
38
  all_vals <- all_vals[!is.na(all_vals)]
39
  q_breaks_legend <- quantile(all_vals, probs = seq(0, 1, 0.2), na.rm = TRUE)
 
420
  )
421
  )
422
  ),
423
+
424
  # Time series at clicked location
425
  fluidRow(
426
  column(
 
434
  "Tap on the map to see the IWI time-series (1990–2019) for that location.")
435
  )
436
  )
437
+ ),
438
+
439
+ ## How It Works
440
+ fluidRow(
441
+ box(
442
+ title = tagList(icon("cogs"), "How It Works"),
443
+ status = "primary", solidHeader = TRUE, collapsible = TRUE, collapsed = TRUE,
444
+ width = 12,
445
+ HTML("
446
+ <p>These wealth-index predictions are <strong>AI-generated</strong> by a
447
+ sequence-aware neural network trained on 30 years of <em>Demographic and
448
+ Health Surveys (DHS)</em> ground-truth data.</p>
449
+ <ul>
450
+ <li>πŸ” 57,100+ geo-referenced survey points from DHS</li>
451
+ <li>βš™οΈ Multi-spectral satellite bands & raster-to-vector feature extraction</li>
452
+ <li>🎯 Calibrated & validated with held-out DHS clusters (1990–2019)</li>
453
+ </ul>
454
+ <p style='font-size:12px; color:#666;'>
455
+ (Learn more: <a href='https://doi.org/10.24963/ijcai.2023/684'>Methodology</a>)
456
+ </p>
457
+ ")
458
+ )
459
  )
460
  ),
461