New idea to visualize the distribution of PSA sampled parameters
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- r
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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")
- 主要语言
- R
- 星标
- 43
- 派生
- 14
- 平均合并
- 4 小时 44 分钟
- 30 天内合并 PR
- 15
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DARTH-git/dampack 的其他 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
release
难度 5/5 一周以上 新手友好度 20/100
维护者通常 1 天内回复
-
documentation release
难度 3/5 1-2 天 新手友好度 25/100
维护者通常 1 天内回复
-
documentation
难度 3/5 1-2 天 新手友好度 58/100
维护者通常 1 天内回复
查看 DARTH-git/dampack 的全部 Issue
相似的 Issue
-
documentation priority: low
难度 2/5 1-3 小时 新手友好度 70/100
Pascal-Kueng/dyadMLM#179 ·
维护者通常 1 天内回复
-
Consider changes未关闭
难度 2/5 1-3 小时 新手友好度 68/100
OHDSI/OmopSketch#618 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
-
bug exec:agent status:fix-merged
难度 2/5 1-3 小时 新手友好度 72/100
ichirio/rtfreporter#1046 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复