neuropsychology / neuropsychology.r Goto Github PK
View Code? Open in Web Editor NEWAn R Toolbox for Psychologists, Neuropsychologists and Neuroscientists.
License: Other
An R Toolbox for Psychologists, Neuropsychologists and Neuroscientists.
License: Other
in
neuropsychology.R/R/fa_loadings.R
Line 19 in f4f70c4
select_vars()
calls.
We're going to deprecate select_vars()
eventually, so it's a good idea to remove it anyway.
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.
Try to implement this.
Using the ppcor
package.
This function really needs improving (support more statistical functions, enhance the output).
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...
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.