Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
StudyFramework Plugin
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
StudyFramework Plugin
Wiki
Randomization
Examples
Changes
Page history
New page
Templates
Clone repository
Update Examples
authored
2 years ago
by
Jonathan Ehret
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Randomization/Examples.md
+78
-0
78 additions, 0 deletions
Randomization/Examples.md
with
78 additions
and
0 deletions
Randomization/Examples.md
View page @
c8ecd773
...
...
@@ -628,3 +628,81 @@ So far all examples only used ``Within``-subject factors, where each participant
| ... |
Notice that every participants either only sees
``1``
s or
``2``
s.
---
Here is the python script used to automatically generate those tables. In case new examples should be added:
<p>
<details>
<summary>
WikiTableGenerator.py
</summary>
```
orange = "🟠" #not shown correctly here but show correctly in gitlab Wiki
green = "🟢"
blue = "🔵"
def WriteHeader(numberCells):
outputlines = []
output = "| participant # |"
for i in range(numberCells):
output += " |"
outputlines.append(output)
output = "|"
for i in range(numberCells+1):
output += " --- |"
outputlines.append(output)
return outputlines
with open('GeneratedDebugRuns.txt') as f:
lines = f.readlines()
outputlines = []
for line in lines:
entries = line.split("\t")
if len(outputlines) == 0:
outputlines = WriteHeader(len(entries)-1)
outLine = "| "+str(entries[0])+" |"
for i in range(1, len(entries)):
condition = entries[i]
#color
if "Green" in condition:
outLine += " " + green
elif "Orange" in condition:
outLine += " " + orange
elif "Blue" in condition:
outLine += " " + blue
#number
if "_1" in condition:
outLine += " 1"
elif "_2" in condition:
outLine += " 2"
#letter
if "_a" in condition:
outLine += " a"
elif "_b" in condition:
outLine += " b"
elif "_c" in condition:
outLine += " c"
outLine += " |"
outputlines.append(outLine)
print(outputlines)
outFile = open('table.txt', 'w', encoding="utf-8")
for outline in outputlines:
outFile.write(outline+"\n")
outFile.close()
```
</details>
</p>
\ No newline at end of file
This diff is collapsed.
Click to expand it.