Suche senden
Hochladen
0502 sas實習課
•
2 gefällt mir
•
1,206 views
Juchi Yu
Folgen
proc glm basic
Weniger lesen
Mehr lesen
Technologie
Unterhaltung & Humor
Melden
Teilen
Melden
Teilen
1 von 17
Empfohlen
Sas tutorial glm1
Sas tutorial glm1
WenSheng Chang
0405 sas 實習課
0405 sas 實習課
Visual Cognition and Modeling Lab
GM Thesis
GM Thesis
Dr Graham Malyon
GLM-report-05_05-web
GLM-report-05_05-web
Paola Chapdelaine
Machine learning Introduction
Machine learning Introduction
Dong Guo
Logistic Regression
Logistic Regression
Dong Guo
Regression analysis ppt
Regression analysis ppt
Elkana Rorio
[Nelson 2003] dissociable neural mechanisms underlying response based and fam...
[Nelson 2003] dissociable neural mechanisms underlying response based and fam...
Juchi Yu
Empfohlen
Sas tutorial glm1
Sas tutorial glm1
WenSheng Chang
0405 sas 實習課
0405 sas 實習課
Visual Cognition and Modeling Lab
GM Thesis
GM Thesis
Dr Graham Malyon
GLM-report-05_05-web
GLM-report-05_05-web
Paola Chapdelaine
Machine learning Introduction
Machine learning Introduction
Dong Guo
Logistic Regression
Logistic Regression
Dong Guo
Regression analysis ppt
Regression analysis ppt
Elkana Rorio
[Nelson 2003] dissociable neural mechanisms underlying response based and fam...
[Nelson 2003] dissociable neural mechanisms underlying response based and fam...
Juchi Yu
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product 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 Health
ThinkNow
AI 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 Code
Skeleton Technologies
PEPSICO 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)
contently
How 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 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 2024
Search Engine Journal
5 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
Clark Boyd
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 Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time 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 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...
RachelPearson36
Weitere ähnliche Inhalte
Empfohlen
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product 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 Health
ThinkNow
AI 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 Code
Skeleton Technologies
PEPSICO 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)
contently
How 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 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 2024
Search Engine Journal
5 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
Clark Boyd
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 Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time 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 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...
RachelPearson36
Empfohlen
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product 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 Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO 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)
How 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 Insights
Trends 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 summary
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
Google'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
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The 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...
0502 sas實習課
1.
SAS tutorial: GLM
(1) 游如淇 Psy.j.c.yu@gmail.com Office hour: 星期一 下午4:00-5:00
2.
Example 1 • xx跟yy的關係是什麼?
3.
Generalized Linear Model
4.
Code of example
1 畫圖 ods graphics on; proc sgscatter data=ex1; plot yy*xx; run; ods graphics off; PROC GLM proc glm data=ex1; model yy=xx; proc glm data=ex1; model yy=xx*xx; run;
5.
Example 1 yy=xx yy=xx*xx
6.
PROC GLM(功能) • Simple
/ multiple regression • ANOVA / MANOVA • ANOVA for repeated measures • ANCOVA • Weighted regression • Partial correlation • Polynomial regression
7.
PROC GLM (syntax) PROC
GLM 選項串 ; CLASS 變相名稱串; MODEL 依變項=實驗效果串/選項串 ; MEANS 實驗效果串/選項串; CONTRAST “標題” 效果名稱串 各組效果係數/選項串 TEST H=效果項 E=殘差項 RUN; • 還有ESTIMATE、RANDOM、LSMEAN…等其他 statement,跟 PROC ANOVA 差不多 Nominal or ordinal scale
8.
Some statements • CONTRAST:作對比分析 –
CONTRAST “標題” 效果名稱串 各組效果係數/選項串; • “標題”: 20字內,不能有“;” • 效果名稱: 要在model中出現過,界定所要比較的效果 • 係數:總合為0 以空格隔開 – E.g. CONTRAST „A1B1 vs A2B2‟ A*B 1 0 0 -1; – E.g. CONTRAST „b at a1‟ a*b 3 3 -2 -2 -2 0 0 0 0 0; • 選項串:e, ss3…… • TEST:指定效果項與殘差項作F檢定 – TEST H=效果項 E=殘差項; – E.g. TEST h=A*B e=S*A*B; • CONTRAST必須擺在MODEL之後,TEST、 MANOVA、REPEATED、RANDOM之前 • CLASS需擺在MODEL之前
9.
Some statements • ESTIMATE:估計參數的線性組合 –
ESTIMATE ‟label‟ effect values <...effect values > < / options > ; – 語法跟CONTRAST一樣,功能也差不多 • RANDOM:指定哪些變項是 random effect – RANDOM effects < / options > ; – E.g. RANDOM A B;
10.
Some statements • LSMean
效果串/選項串 – 選項串 • slice = 固定效果名稱串 簡單主要效果 • Pdiff 成對LSMean差異 • Sterror 算std error
11.
Example: unbalanced ANOVA data exp; input
A $ B $ Y @@; datalines; A1 B1 12 A1 B1 14 A1 B2 11 A1 B2 9 A2 B1 20 A2 B1 18 A2 B2 17 ; proc glm data=exp; class A B; model Y=A B A*B; run;
12.
Result
13.
Example
14.
Result-1
15.
Result-2
16.
Result-3
17.
Result-4means Type /
waller regwq; run;