Git Product home page Git Product logo

tidal's People

Contributors

ameliaes avatar eileenyxu avatar kwongsiufung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

woodthom2

tidal's Issues

[BUG] numbers dont round nicely in tables

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2023-06-20 at 11 43 09

Screenshot 2023-06-20 at 11 44 37

Desktop (please complete the following information):

  • OS: [e.g. mac, windows, linux]
  • R Studio, R package, Online version, Desktop app,
  • Browser (if applicable) [e.g. chrome, safari]

Additional context
Add any other context about the problem here.

[BUG] Continuous covariate cant be added

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Data exploration page
  2. Add a continuous covariate

** 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):

  • OS: [e.g. mac, windows, linux]
  • R Studio, R package, Online version, Desktop app,
  • Browser (if applicable) [e.g. chrome, safari]

Additional context
Add any other context about the problem here.

[BUG] empty strings in dataset

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.

lmer survey weights not working

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)

[FEATURE] add violin plots

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.

[BUG] AUC and scores at ages doesn't work if interaction variable contains NA

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:

  1. Upload data with missing values in the categorical Sex column.
  2. Run a linear model as standard
  3. Go to the Interaction Variable page, select Sex as categorical variable.
  4. Interact as usual with the Scores at ages and AUC tabs.
  5. Note how the tables dont show or the difference in males and females for AUC. Note how there is also an NA plotted in the legend but no plot line for NA.

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):

  • R package

Additional context
Add any other context about the problem here.

[FEATURE] interpretation of results

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.

[BUG] data exploration plot not updated

Describe the bug
data exploration plot not updated when changing model type and clicking on run model.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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):

  • OS: [e.g. mac, windows, linux]
  • R Studio, R package, Online version, Desktop app,
  • Browser (if applicable) [e.g. chrome, safari]

Additional context
Add any other context about the problem here.

[BUG] download report doesn't work if you dont go through all the 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.

[BUG] Some issues with the download report on Windows

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"

[FEATURE] toggle dark/high contrast mode

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.

[FEATURE] Report AUC as a table

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?

[BUG] Cannot access files on a remote server

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

[FEATURE] change factor levels

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.