SlideShare a Scribd company logo
z-Treeの基礎その7
練習用のステージをつくる
練習用のステージをつくる①
•
が青くハイライトされている
状態(ハイライトされていな
い場合はこれをクリックする
とハイライトされる)で
“Treatment”タブをクリック
して“New Stage...”をクリッ
ク.
練習用のステージをつくる②
• “Stage”画面が開かれたら
“Name”を“PracticeDecision”
にする.
• “Leave stage after timeout”
を“60”にする.
• それができたらOKをクリッ
ク
練習用のステージを表示する①
•
をクリックして青くハイライ
トされたら“Treatment”タブ
をクリックして“New
Program...”をクリック.
• 右図のような画面が開かれた
ら,この練習用のステージを
表示するプログラムを考えよ
う.
練習用のステージを表示する②
• この練習用のステージを表示する方法は簡単で,
本番用のステージが Period = 1, 2, 3,...n と表されるのに対し,
練習用のステージは Period = -m, ...,-3,-2,-1, 0という扱いに
なっている.すなわち,Periodが正の値であれば本番用のス
テージ,負の値であれば練習用のステージを出せばよい.
• つまり,練習用のステージを表示させるにはPeriod≦0のとき
参加(Participate = 1),Period>0のとき不参加(Participate = 0)
とすればよい.
練習用のステージを表示する③
• よって,練習用ステージを出すプログラムは,
if( Period <= 0 ) {
Participate = 1;
}
else {
Participate=0;
}
となる.これの意味は『Periodが0以下(練習Period)のとき
このステージに参加,そうでないとき(Periodが0より大きい,
すなわち本番Period),このステージに参加しない.』
練習用のステージを表示する④
• このプログラムを先程表示さ
せた“Program”画面の
“Program”に書いて,OKをク
リック.
画面の左半分をつくる (Container Box) ①
• 練習用の意思決定画面の左側
(利得表)をつくる.
• PracticeDecisionの中にある
をクリック.
青くハイライトされたら,
“Treatment”タブから“New
Box”の中にある“Container
Box...”をクリック.
画面の左半分をつくる (Container Box) ②
• “Box” 画面が出てきたら
“Name”を“Container” から
“Leftside”へ変える.
• また,画面中央あたりにある
“Distance to the margin”の4
箇所あるうちの右側に50%と
入力する.これは画面の右側
50%を空けるという意味(た
ぶん).
• これができたらOKボタンを
クリック.
画面の左半分に利得表を入れる①
• いま作った
をクリックして青くハイライ
トされたら“Treatment”タブ
から“New Box”の中にある
“New Multimedia Box...”をク
リック.
画面の左半分に利得表を入れる②
• “Multimedia Box”画面が開か
れたら“Name”を“Payoff
Practice matrix”とする.
• さらに,“File name”に同じ
ztreeのフォルダに予め用意し
ておいた利得行列の画像名を
拡張子(.jpgや.pngなど)ま
で記入する.
• それができたらOKボタンを
クリック
画面の左半分に利得表を入れる③
• を
へドラッグ&ドロッ
プし,右図のように
の中に
が入ってい
るような状態にする(右図).
• これで練習の意思決定画面の
左側に利得表が表示されるよ
うになった.
画面の右半分をつくる (Container Box) ①
• つぎに,本番の意思決定画面
の右側部分(意思決定ボタ
ン)を作成する.
• の中にある
をクリック.
青くハイライトされたら,
“Treatment”タブから“New
Box”の中にある“Container
Box...”をクリック.
画面の右半分をつくる (Container Box) ②
• “Box” 画面が出てきたら
“Name”を“Container” から
“Rightside”へ変える.
• また,画面中央あたりにある
“Distance to the margin”の4
箇所ある左側に50%と入力す
る.これは画面の左側50%を
空けるという意味(たぶん).
これができたらOKボタンを
クリック.
画面の右半分をつくる (Container Box) ③
• いま作った
をクリックして青くハイライ
トされたら“Treatment”タブ
から“New Box”の中にある
“Standard Box...”をクリック.
画面の右半分をつくる (Container Box) ④
• “Standard Box”画面が開かれ
たら“Name”を“Practice
Decision”とする.
• それができたらOKボタンを
クリック
画面の右半分をつくる (Container Box) ⑤
• を
へドラッグ&ドロップし,右
図のように の中に
が入っている
ような状態にする(右図).
• これで練習用の意思決定画面
の右側に意思決定ボタンを配
置する準備ができた.
画面の右半分に意思決定ボタンをつくる①
• 意思決定ボタンを準備する.
• いまつくった
をクリックして青くハイライ
トされたら“Treatment”タブ
から“New Item...” をクリック.
画面の右半分に意思決定ボタンをつくる②
• “Label”のところに日本語で
“どちらか選んでください”と
入力する.
• 文字化けするときがあるが,
気にせずにOKボタンをク
リック.
画面の右半分に意思決定ボタンをつくる③
•
をクリックして青くハイライ
トされたら“Treatment”タブ
から“New Item...” をクリック.
画面の右半分に意思決定ボタンをつくる④
• “Label”にはなにも入力せずに
そのままOKボタンをクリッ
ク
• これは,被験者が見やすいよ
うに設問と意思決定ボタンの
間にいれた空白である.
画面の右半分に意思決定ボタンをつくる⑤
• いま作成した
をクリックして青くハイライ
トされたら(実際は青くハイ
ライトされいるが分かりづら
いので注意)“Treatment”タ
ブから“New Item...” をクリッ
ク.
画面の右半分に意思決定ボタンをつくる⑥
• “Label”の欄は空白でよい.
• “Variable”には被験者の意思
決定を変数として扱うために
“Choice”という変数名をつけ
る.
• さらにこれは,被験者が入力
する変数なので一番下にある
“Input”にチェックを入れる.
画面の右半分に意思決定ボタンをつくる⑦
• 今回は,被験者がCを選んだ
場合を1,Dを選んだ場合を0
とするような変数“Choice”を
考える.
• ラジオボタン形式にするには,
!radio:
1 =“C ”;
0 =“D ”;
とする.
半角スペースを4回打ってインデントを揃えると見やすい..
画面の右半分に意思決定ボタンをつくる⑧
• さらにこの変数“Choice”の下
限と上限を決める必要がある.
• 今回は0と1しか取らないので,
“Minimum”に0,“Maximum”
に1と入力.
• ここまでできればOKをク
リック.
OKボタンをつくる①
•
をクリックして青くハイライ
トされたら“Treatment”タブ
から“New Button...” をクリッ
ク.
OKボタンをつくる②
• 何も変えずにそのままOKボ
タンをクリック.
• 意思決定画面の右下に“OKボ
タン”が表示される.
本番用のステージを表示させる①
• ここで,注意しなければならないのは,練習用のステージを表
示させるプログラムは書いたが,本番用のステージを表示させ
るプログラムは書いていないことである.
• したがって,練習のときには本番用のステージを表示させず,
本番のときにのみ表示させるプログラムを考える必要がある.
本番用のステージを表示させる②
• をクリックして
青くハイライトされたら
“Treatment”タブをクリック
して“New Program...”をク
リック.
• ここに本番用のステージを表
示させるプログラムを書いて
いこう.
本番用のステージを表示させる③
• ここに書きたいプログラムは練習用のステージを表示するため
に書いたプログラムの反対で,Period>0のとき参加
(Participate = 1),Period≦0のとき不参加(Participate = 0)とす
ればよい.
本番用のステージを表示させる④
• よって,
if ( Period > 0 ) {
Participate = 1;
}
else {
Participate = 0;
}
と書けばよい.
本番用のステージを表示させる⑤
• これを“Program”画面の
“Program”に書いて,OKをク
リック.
利得プログラムを書き加える①
• 最後に練習用の結果画面を作成する必要があるが,今回は利得
を表示する結果画面を本番用とは別に練習用のものを用意する
のではなく,本番用の利得プログラムに練習用の利得プログラ
ムを書き足すことにする.
利得プログラムを書き加える②
• から,利得の
プログラムである
をクリックして“Program”画
面を開く.
• すると右図のようになってい
るはずなので,この後半部分
のプログラムに練習用の利得
を書き足していこう.
利得プログラムを書き加える③
• ここに書き足すプログラムは
練習か本番かを判別するため
にPeriodの正負の条件を書き
足し,さらに練習用の利得を
加えたプログラムを作成する.
• それができたら右図のように
なるのでOKをクリック.
おわり
• これで,今回の実験プログラムは完成!

More Related Content

Featured

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

z-Tree manual #7