Git Product home page Git Product logo

msc-data-skills's People

Contributors

cedricbatailler avatar dalejbarr avatar debruine avatar richarddmorey avatar richardjtelford avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

msc-data-skills's Issues

utils::browseURL in exercise() does nothing (at least on Ubuntu)

At least on Ubuntu, this line in exercise() does nothing.

utils::browseURL(filename)

Consider using rstudioapi::navigateToFile(filename) which will open the file in Rstudio.

To allow for anyone not using Rstudio, it might be worth either using usethis::edit_file directly or copying the last few lines from that function into exercise() which tests if Rstudio is being used and opens the file in an appropriate way.

I can send a pull request if you want, but cannot test on windows machine

Exercise 07 question 4b

I cannot get the answer for question 4b to reproduce, using

set.seed(321)
mu <- seq(0, 1, 0.1)
samples <- map(mu, rnorm, n = 100)
sample_means <- map_dbl(samples, mean) %>% print()

produces:
[1] 0.009067669 0.098448711 0.363801400 0.384951951 0.503663364 0.346219426 0.648143250 [8] 0.805276960 0.838016778 0.892675777 1.051627663

maybe an issue with set.seed() working differently?? Not sure how the rnorm function interprets mu to contain mean values in this case as opposed to say SD values?

Parsing error with CSV: US CDC Growth Chart Data Tables

The CSV used in 08_sim_exercise.Rmd at Question 7 is US CDC Growth Chart Data Tables.

This CSV file is confusing in a few ways. First, beginning in line 435, it looks like this:

1,240.5,162.4776756,166.0916092,169.6925342,173.2808172,176.8568057,180.4208299,183.9732035,187.5142253,191.0441799
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
Sex,Agemos,-2,-1.5,-1,-0.5,0,0.5,1,1.5,2
2,24,78.02185636,79.76434516,81.50408026,83.24112888,84.97555512,86.70742016,88.43678251,90.16369812,91.88822059
2,24.5,78.40361515,80.15493488,81.90429469,83.65174068,85.3973169,87.14106545,88.8830266,90.62323896,92.36173951

Also, Agemos has range from 24 to 240.5. What is the Agemos?

Exercise 06 question 10 and 11

You can get different answers depending how you calculate as one individual in users and users2 shares a user_id "16498" but has a different gender and birthdate in each

tidyverse dependency

I got

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called 'tidyverse' Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package 'dataskills'

when trying to install had to install tidyverse manually as it does not seem to be registered as a dependency.
Also this contains some packages that need compiling in windows so you need Rtools40 setup
Also watch out for Microsoft R Open and its shitty CRAN repository snapshot
Was hoping R would be less of a shitshow than python with package management alas

Instead of alpha, write significance level

In 08_sim_exercise.Rmd on Question 7:

Calculate power for a two-tailed t-test with an alpha of .005 [...]

Instead of alpha, one could use significance level. There is confusion between confidence level and significance level, so using both in the exercises is really good.

useful to package up?

When compiling this, I noted that it would be useful to put into an R package so that package dependencies could be installed automatically and the entire book could be installed locally with devtools. Would this be useful for me to send over as a pull request?

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.