New idea to visualize the distribution of PSA sampled parameters
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- r
- Ambito
- data-visualization
Direzione di ricerca
Start by checking how dampack currently exposes plotting and visualization features, then use the supplied R example with df_psa_random to understand the proposed grouping and density-ridge plots. Done would mean a documented way to visualize PSA sampled parameter distributions grouped as probabilities, utilities, costs, and other; the issue does not specify an entry point, tests, or expected interface.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When the DARTH framework is uses, it would be nice to show the sampled distributions in an illustrative way.
Example to get started with. But we can improve this
Melt the dataset
df_melt <- melt(df_psa_random, variable.name = "Parameter")
Create a new column to classify parameters by prefix
df_melt <- df_melt %>%
mutate(Group = case_when(
str_starts(Parameter, "p_") ~ "Probabilities",
str_starts(Parameter, "u_") ~ "Utilities",
str_starts(Parameter, "c_") ~ "Costs",
TRUE ~ "Other"
))
Optionally check the groups
table(df_melt$Group)
df_probs <- df_melt %>% filter(Group == "Probabilities")
Probabilities:
ggplot(df_probs, aes(x = value, y = Parameter)) +
geom_density_ridges(scale = 1.5, rel_min_height = 0.01) +
theme_bw(base_size = 14) +
ggtitle("Probabilities")
df_utils <- df_melt %>% filter(Group == "Utilities")
ggplot(df_utils, aes(x = value, y = Parameter)) +
geom_density_ridges(scale = 1.5, rel_min_height = 0.01) +
theme_bw(base_size = 14) +
ggtitle("Utilities")
df_costs <- df_melt %>% filter(Group == "Costs")
ggplot(df_costs, aes(x = value, y = Parameter)) +
geom_density_ridges(scale = 1.5, rel_min_height = 0.01) +
theme_bw(base_size = 14) +
ggtitle("Costs")
df_other <- df_melt %>% filter(Group == "Other")
ggplot(df_other, aes(x = value, y = Parameter)) +
geom_density_ridges(scale = 1.5, rel_min_height = 0.01) +
theme_bw(base_size = 14) +
ggtitle("Other")
- Lingua principale
- R
- Stelle
- 43
- Fork
- 14
- Merge medio
- 4h 44m
- PR unite (30g)
- 15
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DARTH-git/dampack
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
release
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
I maintainer di solito rispondono entro 1 giorno
-
documentation release
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di DARTH-git/dampack
Issue simili
-
documentation priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Pascal-Kueng/dyadMLM#179 ·
I maintainer di solito rispondono entro 1 giorno
-
Consider changesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
OHDSI/OmopSketch#618 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
bug exec:agent status:fix-merged
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ichirio/rtfreporter#1046 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno