mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 01:49:39 +02:00
new docs
This commit is contained in:
parent
2065c9c800
commit
07e94f4401
3 changed files with 97 additions and 41 deletions
62
ROADMAP.md
62
ROADMAP.md
|
@ -1,10 +1,26 @@
|
|||
# Project roadmap
|
||||
|
||||
The current state of the app is considered experimental, and a lot of things are still changing. It is, however, in a usable state, with basic functions available to the user.
|
||||
The current state of the app is considered experimental, however, from version 25.4.2, the ***FreesearchR*** app is considered functional and can be used for data evaluation and analyses.
|
||||
|
||||
Below are some (the actual list is quite long and growing) of the planned features and improvements:
|
||||
Below are some (the actual list is quite long and growing) of the planned new features and improvements:
|
||||
|
||||
- Additional study designs in regression models (expansion of the regression analysis functionality have been put on hold for now to focus on the more basic use-cases):
|
||||
### Implementation in real world clinical studies and projects
|
||||
|
||||
This really is the main goal of the whole project.
|
||||
|
||||
### New features:
|
||||
|
||||
- [ ] Merge data from multiple sources (you can merge sheets from a workbook (xls or ods), but this would allow merging several files and/or REDcap data)
|
||||
|
||||
- [ ] Additional plot types (bar plots, *others...*)
|
||||
|
||||
- [ ] Missingness analysis panel
|
||||
|
||||
### Expanded options for regression models:
|
||||
|
||||
Expansion of the regression analysis functionality have been put on hold for now to focus on the more basic use-cases):
|
||||
|
||||
More study designs
|
||||
|
||||
- [x] Cross-sectional data analyses
|
||||
|
||||
|
@ -12,44 +28,20 @@ Below are some (the actual list is quite long and growing) of the planned featur
|
|||
|
||||
- [ ] Survival analysis
|
||||
|
||||
Other regression models
|
||||
|
||||
- [ ] Stratified analyses
|
||||
|
||||
- More detailed variable browser
|
||||
- [ ] Mixed models of repeated measures
|
||||
|
||||
- [x] Add histograms for data distribution. 2025-01-16
|
||||
- [ ] Cox regression analyses
|
||||
|
||||
- [x] Option to edit labels. 2025-01-16
|
||||
Data handling
|
||||
|
||||
- More output controls
|
||||
- [ ] Transforming data (transpose and pivoting)
|
||||
|
||||
- [x] ~~Theming output tables~~ The "JAMA" theme is the new standard.
|
||||
### Improved documentation:
|
||||
|
||||
- [x] ~~Select analyses to include in report.~~ Includes characteristics table and regression table if present. No other analyses are intended for the report as of now.
|
||||
- [ ] Video walk-through of central functions
|
||||
|
||||
- [x] Export modified data. 2025-01-16
|
||||
|
||||
- [x] Include reproducible code for all steps (maybe not all, but most steps, and the final dataset can be exported) 2025-04-10
|
||||
|
||||
- [x] ~~Modify factor levels~~ Factor level modifications is possible through converting factors to numeric > cutting numeric with desired fixed values. 2024-12-12
|
||||
|
||||
- [x] More options for date/datetime/time grouping/factoring. Included weekday and month-only options. 2024-12-12
|
||||
|
||||
- Graphs and plots
|
||||
|
||||
- [x] Correlation matrix plot for data exploration 2025-2-20
|
||||
|
||||
- [x] Grotta bars for ordianl outcomes (and sankey) 2025-3-17
|
||||
|
||||
- [x] Coefficient plotting for regression analyses (forest plot) 2025-2-20
|
||||
|
||||
Documentation:
|
||||
|
||||
- [ ] Complete getting started page describing all functionality.
|
||||
|
||||
- [ ] Streamlined functions documentation
|
||||
|
||||
New features:
|
||||
|
||||
- [ ] Merge data from multiple sources (this would in itself be a great feature, but not of highest importance)
|
||||
|
||||
- [ ] Additional plot types (missingness, *others...*)
|
||||
|
|
|
@ -61,6 +61,16 @@ This will unfold options to preview your data dictionary (the main database meta
|
|||
|
||||
When opening the online hosted app, this is mainly for testing purposes. When running the app locally from *R* on your own computer, you will find all data.frames in the current environment here. This extends the possible uses of this app to allow for quick and easy data insights and code generation for basic plotting to fine tune.
|
||||
|
||||
## Data
|
||||
|
||||
This is the panel to get a good overview of your data, check data is classed and formatted correctly, perform simple modifications and filter data.
|
||||
|
||||
### Summary
|
||||
|
||||
### Modify
|
||||
|
||||
|
||||
|
||||
## Evaluate
|
||||
|
||||
This panel allows for basic data evaluation.
|
||||
|
@ -80,7 +90,7 @@ There are a number of plotting options to visualise different aspects of the dat
|
|||
Below are the available plot types listed.
|
||||
|
||||
```{r echo = FALSE, eval = TRUE}
|
||||
c("continuous", "dichotomous", "ordinal", "categorical") |>
|
||||
c("continuous", "dichotomous", "categorical") |>
|
||||
lapply(\(.x){
|
||||
dplyr::bind_cols(
|
||||
dplyr::tibble("Data type"=.x),
|
||||
|
@ -106,6 +116,27 @@ Also copy the code to generate the plot in your own R-environment and fine tune
|
|||
|
||||
This section is only intended for very simple explorative analyses and as a proof-of-concept for now. If you are doing complex regression analyses you should probably just write the code yourself.
|
||||
|
||||
Below are the available regression types listed.
|
||||
|
||||
```{r echo = FALSE, eval = TRUE}
|
||||
c("continuous", "dichotomous", "categorical") |>
|
||||
lapply(\(.x){
|
||||
dplyr::bind_cols(
|
||||
dplyr::tibble("Data type"=.x),
|
||||
supported_functions()|>
|
||||
lapply(\(.y){
|
||||
if (.x %in% .y$out.type){
|
||||
.y[c("descr","fun","design")]|> dplyr::bind_cols()
|
||||
}
|
||||
})|>
|
||||
dplyr::bind_rows() |>
|
||||
setNames(c("Regression model","Function","Study design")))
|
||||
}) |>
|
||||
dplyr::bind_rows() |>
|
||||
# toastui::datagrid(filters=TRUE,theme="striped") |>
|
||||
kableExtra::kable()
|
||||
```
|
||||
|
||||
### Table
|
||||
|
||||
Generate simple regression models and get the results in a nice table. This will also be included in the exported report.
|
||||
|
|
33
vignettes/data-types.Rmd
Normal file
33
vignettes/data-types.Rmd
Normal file
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
title: "Data types"
|
||||
output: rmarkdown::html_vignette
|
||||
vignette: >
|
||||
%\VignetteIndexEntry{data-types}
|
||||
%\VignetteEngine{knitr::rmarkdown}
|
||||
%\VignetteEncoding{UTF-8}
|
||||
---
|
||||
|
||||
```{r, include = FALSE}
|
||||
knitr::opts_chunk$set(
|
||||
collapse = TRUE,
|
||||
comment = "#>"
|
||||
)
|
||||
```
|
||||
|
||||
```{r setup}
|
||||
library(FreesearchR)
|
||||
```
|
||||
|
||||
## A clinical data class
|
||||
|
||||
Traditionally in *R*, data is identified by classes, like numeric, integer, double, logical, factor etc. These classes can be a little confusing from a clinical or operational standpoint. In the ***FreesearchR*** app, these classes has been simplified and modified to the following data types, that are assigned on a prioritised order like the following:
|
||||
|
||||
```{r echo = FALSE, eval = TRUE}
|
||||
data_types() |> purrr::imap(\(.x,.i){
|
||||
dplyr::bind_cols("type"=.i,.x,.name_repair = "unique_quiet")
|
||||
}) |> dplyr::bind_rows() |>
|
||||
setNames(c("Data type","Description","Data classes included")) |>
|
||||
kableExtra::kable()
|
||||
```
|
||||
|
||||
Categorising data in this way makes sense when making choices on how to evaluate and analyse data. This is used throughout the ***FreesearchR*** app to simplify data handling.
|
Loading…
Add table
Reference in a new issue