tidal-modelling / tidal Goto Github PK
View Code? Open in Web Editor NEWTIDAL: Tool to Implement Developmental Analyses of Longitudinal data. An R Shiny app.
Home Page: https://tidal-modelling.github.io/
License: GNU General Public License v3.0
TIDAL: Tool to Implement Developmental Analyses of Longitudinal data. An R Shiny app.
Home Page: https://tidal-modelling.github.io/
License: GNU General Public License v3.0
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
add CIs to data exploration page
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
** Error message **
Error in mutate: ℹ In argument: er_total_t1 = (function (length = 0L) ...
.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
On the data exploration page the user has the option to Z-score standardise any continuous variables.
If users have column names containing spaces these are replaced with underscores. If column names contain "(", ")" or "*" these are replaced with empty strings "". Could you add this somewhere to the documentation please?
Include interaction terms to estimate the plot line
Not urgent, but I've figured a way to edit the global default ggplot theme here:
https://github.com/AmeliaES/TIDAL/blob/3a3a00a124f7721bd2499f5c98b175aba3e9348a/inst/TIDALapp/app.R#L12-L14
I'm not sure the plots look particularly pretty... if you're bored feel free to have a look if you can make them look nicer :-)
If data has cells with empty strings ie "" there is no option to select that column in the data exploration page. But only when checking if the column is numeric or not.
Tried to add survey weights as an option in lmer, but variables not explicitly available in the global environment can't be parsed to the weights argument in lmer (see below for details). Please see branch F_lmerWeights. To install from this branch specifically you can do devtools::install_github("AmeliaES/TIDAL", ref = "F_lmerWeights")
I have found what the problem is and show a reproducible example outside the Shiny environment using the "MCS_Wide_6_Weights" dataset Alex sent me below:
library(lme4)
library(dplyr)
newModelData <- read.csv("MCS_Wide_6_Weights_LongFormat_2023-08-22.csv")
formCodeCovars <- "score ~ age + ( 1 + age | subject )"
testlmer <- function(weightsTest){
weightsVec <- pull(newModelData, !!sym(weightsTest))
fit <- lmer(formula = formCodeCovars,
REML=FALSE ,
data = newModelData,
control=lmerControl(optimizer="bobyqa",
optCtrl=list(maxfun=2e5)),
weights = weightsVec)
return(fit)
}
testlmer(weightsTest = "WEIGHT2")
testlmer <- function(weightsTest){
fit <- lmer(formula = formCodeCovars,
REML=FALSE ,
data = newModelData,
control=lmerControl(optimizer="bobyqa",
optCtrl=list(maxfun=2e5)),
weights = newModelData[[weightsTest]])
return(fit)
}
testlmer(weightsTest = "WEIGHT2")
# -------------------------------------
# The following works:
weightsTest <- "WEIGHT2"
lmer(formula = formCodeCovars,
REML=FALSE ,
data = newModelData,
control=lmerControl(optimizer="bobyqa",
optCtrl=list(maxfun=2e5)),
weights = newModelData[[weightsTest]])
# -------------------------------------
# Conclusion:
# lmer can only pass variables in the global environment to the weights argument
# if the variable is in eg. a function or shiny environment then it can't find it.
# the only thing that did work in the shiny environment was explicitly writing the column variable name:
lmer(formula = formCodeCovars,
REML=FALSE ,
data = newModelData,
control=lmerControl(optimizer="bobyqa",
optCtrl=list(maxfun=2e5)),
weights = WEIGHT2)
Allow users to upload SPSS and STATA files, .sav and .dta
add violin plots for variables users select for them to get a visual description of their data, check the range looks sensible, any outliers etc.
Describe the bug
Error if spaces in column name variables
Replace spaces with underscores after initial upload of data frames. Check for both wide and long upload options.
Describe the bug
A clear and concise description of what the bug is.
AUC and scores at ages doesn't work if interaction variable contains NA
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect to see the table for scores at ages, and 0,1 to be automatically selected in AUC with a sentence stating the difference in AUC between those 2 levels.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Add interpretation of parameters. E.g. for each increase in X (enter the variable they put in), Y (enter the outcome variable) increased by.... accounting for... etc.
accessibility feature
If a .xlsx file is uploaded then the app crashes. Include a trycatch statement to prevent this crash.
Describe the bug
data exploration plot not updated when changing model type and clicking on run model.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
allow user to edit ggplots, eg. colours, labels of axes, labels in legend.
download report to include differences in scores at ages and AUC now we have included CIs. Also noticed plot isn't rendering for scores at ages.
check it works even when users don't interact with scores at ages and/or AUC tabs
If you click on Download Report button in either the data exploration page or the interaction variable page but dont interact with the scores at ages and AUC tabs then the Rmd wont render.
Make a way that if these two plots and tables aren't produced the Rmd will still render without these variables.
Working on F_DownloadResults branch.
makes plots more legible by increasing text size and axis labels
From creating Window's installer it was found that the Download Report feature didn't work, even when they tried using RStudio on Windows. See below:
"some issues with Rstudio on windows and producing PDFs from the download data button. The root cause appears to be two things are not happening:
1 – Tidal.png is not being copied t the build directory
2 – There’s a call to \includegraphics a little after “number-of-observations-and-groups”. It calls for a pdf and folder to be copied. These are never created on windows. From R studio"
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
unsure how to add 95% CIs to this, or if we need to @kwongsiufung might need some help on this one please, not sure glht will work? or is it a different expression we give to this function?
User reported installing the app onto a VM but only being able to access local files when they need to access the files on the VM:
"I was able to install the package on our cloud where we have all our data. I would like to analyse data on the cloud using the app, but when I select the option to browse folders to select data, it directs me to the local folders even though the app is installed on the cloud.
It's an OpenStack cloud and we can't access the cloud files locally."
Having a quick look at this issue I found this package that might offer a solution: https://github.com/thomasp85/shinyFiles
Something to indicate the code is running when users click on the button eg https://community.rstudio.com/t/progress-indicator-for-event-reactive-without-loops/2343/2
tidal logo too big on download report
change figure size in .Rmd
By default the reference level is whatever is first when factorising it. Change this so the user can specify what level they want as the reference variable in their model.
Implement this by:
"relevel(factor, ref = "reference level") - it's from the stats package"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.