Git Product home page Git Product logo

neuropsychology.r's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

neuropsychology.r's Issues

dprime not calculating correctly

I think there might be a bug in the calculation of dprime in the dprime function. This function adjusts for extreme values (e.g., n_miss = 0) using the Hautus (1995) correction, which is summarised as:

"A method that has found much use in log-linear analysis requires the addition of 0.5 to each cell in the two-by-two contingency table that defines the performance of the observer (e.g., Fienberg, 1980; Goodman, 1970; Knoke & Burke, 1980). Row and column totals are increased by one." Hautus (1995, pg. 46).

dprime performs this adjustment in the following way:

hit_rate_adjusted <- (n_hit + 0.5)/((n_hit + 0.5) + n_miss + 1)
fa_rate_adjusted <- (n_fa + 0.5)/((n_fa + 0.5) + n_cr + 1)
dprime <- qnorm(hit_rate_adjusted) - qnorm(fa_rate_adjusted)

But if I'm not mistaken, this is adding 1.5 to the row/col totals, when it should only be adding 1.

Improve `APAze()`

This function really needs improving (support more statistical functions, enhance the output).

remove_outliers

Add a remove_outliers(df, variable, treshold=1.96) function.

Goal: returns the dataframe without the outliers (based on one variable)

Problem: I don't know how to use dplyr::filter() (or any dplyr function) inside a function, for it does not take string variable as an argument. There must be a way to do it though...

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.