Git Product home page Git Product logo

Comments (3)

ihgumilar avatar ihgumilar commented on July 4, 2024

This is the example code that is created to create a combination table that is used to analyze questionnaire data with ANCOVA.
Just grab code that is relevant, particularly toward the end of the code

`
# CoPresence Post
copresence_post_all.append(copresence_averted_post[idx])
copresence_post_all.append(copresence_direct_post[idx])
copresence_post_all.append(copresence_natural_post[idx])

# Create subject number
subject_no = list(range(1,25))
subject = np.repeat(subject_no, 3)

# Create eye gaze number
# 1 = averted post
# 2 = direct post
# 3 = natural post
eye_gaze = np.tile([1, 2, 3], 24)

df_all_eyes = pd.DataFrame({"Subject" : subject,
                          "EyeGaze" : eye_gaze,
                          "Empathy_Pre" : empathy_pre_spgq_all,
                          "Empathy_Post" : empathy_post_spgq_all,
                          "NegativeFeelings_Pre" : negative_feelings_pre_spgq_all,
                          "NegativeFeelings_Post" : negative_feelings_post_spgq_all,
                          "Behavioural_Pre" : behavioural_pre_spgq_all,
                          "Behavioural_Post" : behavioural_post_spgq_all,
                          "SPGQTotal_Pre" : spgq_pre_all,
                          "SPGQTotal_Post" : spgq_post_all,
                          "CoPresence_Pre" : copresence_pre_all,
                          "CoPresence_Post" : copresence_post_all})

df_all_eyes.head()
`

from hyperscanning2-redesign.

ihgumilar avatar ihgumilar commented on July 4, 2024

2acf4a6 Add leading zeros (This is for the result of statistical permutation for subject 1-9 for all algorithm, ie. ccorr, coh, and plv)

Added count significant connections

  • It is for averted_pre and theta only
  • ToDo :
    • Extend to other algorithm, ccorr and coh
    • Extend to other frequencies, alpha, beta, and gamma

from hyperscanning2-redesign.

ihgumilar avatar ihgumilar commented on July 4, 2024

0375c4d
Add func to count total sig connection

Counting total number of significant connection divided into different algorithm and frequency

  • ccorr, coh, plv (algorithm)
  • theta, alpha, beta, and gamma (frequency)

ToDo

  • Count average significant actual score of specific connections out of all pairs (from dictionary), which have key (out of all participants). Use this code to start #32

from hyperscanning2-redesign.

Related Issues (20)

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.