Thursday, January 31, 2008
Thursday, January 24, 2008
SAS syntax conventions
- Conventions
- Syntax Conventions
- UPPERCASE identifies SAS keywords such as the names of statements and
procedures (for example, PROC GCHART). Also identifies
arguments and values that are literals, (for example, NOLEGEND
and LABEL=NONE). - italic identifies arguments or values that you supply. Items in italic can
represent user-supplied values that are either - nonliteral values assigned to an argument (for example,
axis-color in COLOR=axis-color) - nonliteral arguments (for example, VBAR chart-variable. . . ; ).
In addition, an item in italics can be the generic name for a list of
arguments or parameters from which the user can choose (for
example, appearance-options). - < > (angle brackets)
identify optional arguments. Any argument not enclosed in angle
brackets is required. - | (vertical bar) indicates that you can choose one value from a group. Values
separated by bars are mutually exclusive. - . . . (ellipsis) indicates that the argument following the ellipsis can be repeated
any number of times (plot-request <. . . plot-request-n>, for
example). If the ellipsis and the following argument are enclosed in
angle brackets, they are optional. In SAS/GRAPH software, an
ellipsis also indicates a range from which a value is selected
(LINE=1 . . . 46, for example). - () parentheses: used to indicate things to put instead of typing in literally
Monday, January 21, 2008
Bluetooth DUN (No~ limited access, no subscription)
Motorola W385
Bluetooth® Dial-Up Networking* with VZAccess Manager
Keywords: verizon bluetooth dial up networkA restricted function on Motorolla W385
Bluetooth Handset Functionality Chart (Adobe Acrobat file)
id/password (not working because limited access to dial)
XXX-XXX-XXXX@vzw3g.com
vzw
re-enabled their outgoing dialup functionality on the v815 by pressing ##DIALUPVerizon Prevents Treo Use As 3G Modem
UbuntuHelp:BluetoothDialup/Verizon
Sunday, January 20, 2008
Internet connection via Verizon
Voice Genesis Vemail 2.0 $5/month +bandwidth fees (introduction)
Other options
Surf the net/ Receive e-mails
Use Verizon cell phone as a bluetooth modem
Dial-up numbers
Computer set-up instruction: Bluetooth® Dial-Up Networking* with VZAccess Manager
Internet connection speed
speed test
result
Saturday, January 19, 2008
Text to speech
Cepstral Text-to-Speech(best)
(AT&T Labs Text-to-Speech:(better)
TalkingOnline.com - Text To Speech
Other languages:Web-based Text To Speech tools
Both a function in Leopard and VistaLeopard vs. Vista - CNET reviews
There's no
Word doc text? I've been playing with it for about an hour without success.
It reads toolbars just fine, but as for a web page's text or a Word doc, when
I press insert/F7, the command to read the page, it replies 'blank page'.
Suggestions? Is it limited such that it doesn't read docs or is it the end
user's limitations, LOL?
try the latest Opera WebBrowser 9.xx - it' is free ( www.opera.com ) and it
has a builtin narrator (male english voice ) - reads whole webpages in a
good way.
-
使用下表中的鍵盤快速鍵,以指定您想要朗讀程式閱讀的文字。
使用這個鍵盤快速鍵
若要這樣做
CTRL+SHIFT+ENTER
取得目前項目的資訊
CTRL+SHIFT+空白鍵
閱讀整個選取的視窗
CTRL+ALT+空白鍵
閱讀選取的視窗配置
ALT+HOME
取得目前項目的資訊
ALT+END
取得目前項目的摘要
INSERT+SHIFT+G
閱讀目前選取之項目的依存項目摘要
INSERT+CTRL+G
閱讀緊鄰目前選取之項目的非依存項目描述
INSERT+CTRL+HOME
進入 [虛擬功能表] 瀏覽模式,它可允許您存取朗讀程式的命令,而不需從您目前使用的程式進行切換
CTRL
停止朗讀程式閱讀文字
INSERT+Q
將文字選取項目移至前一個文字模式的開頭
INSERT+W
將文字選取項目移至下一個文字模式的開頭
INSERT+E
將文字選取項目移至目前文字模式的開頭
INSERT+R
將文字選取項目移至目前文字模式的結尾
INSERT+F2
利用目前文字模式選取所有文字
INSERT+F3
閱讀目前的字元
INSERT+F4
閱讀目前的文字
INSERT+F5
閱讀目前這一行
INSERT+F6
閱讀目前的段落
INSERT+F7
閱讀本頁
INSERT+F8
閱讀目前的文件
Quosa setting and backup
- Storage: Change the QUOSA file locations settings by going to Settings/Algorithm Settings
- Channel: Pubmed Berkeley and Web of Knowledge
- Retrieve: html, set the max
- Citation manager: set to Endnote
Habit of use
- Delete unproductive search
- Don't move one search result to one folder with the same name
- Select the results to another folder
- file:\\\C:\Users\cdcheng\AppData\Local
- Save as RIS file
- Import RIS file by EndNote
- Warning: path linked to Quosa lost by importing EndNote library but not Quosa RIS
Friday, January 18, 2008
Blog template and bookmarks
Bookmarks (syn with foxmarks)
Also upload in Gspace:\blog template and bookmarks\
Hyperlink mirrors
A safer way to do is creating a mirror using Yahoo group file space (up to 100mb) and links.
Backup is also easy using Yahoo Photos Album Downloader 1.3 (shareware)
Group name: | hyperlinks_mirrors | |
Group home page: | http://groups.yahoo.com/group/hyperlinks_mirrors | |
Group email: | hyperlinks_mirrors@yahoogroups.com |
Thursday, January 17, 2008
Dissertation outlines
Dissertation Outline
- Outline of prospectus (shorter form):
- About purpose and elements in the prospectus: Why should anyone care about this project? Can it be done?
- Thesis statement:A reasonable model for your thesis statement is the abstract found at the beginning of some journal articles~ it is a statement of the historical problem you are researching, the tentative conclusion about that problem you hope your research will support, and an explanation of why this problem, and your solution, are historically significant.
- Literature review/historiographical essay:
- Statement of primary sources:
- Methodology:
- Research plan:
- Chapter outline:
- Bibliography:
Notes for dissertation prospectus
- Another reminder/ checklist
- An example of prospectus in economics:
- A general detailed outline of dissertation:
- Quantitative study oriented:
- Details of format
- http://www.rackham.umich.edu/downloads/oard/Dissertation_Format_Guidelines.pdf
- Timeline
- Abstract
- Introduction
- Explanation of related papers (Glue)
- Three to four publishable journal style articles
- Conclusion
- Future Research
- Appendix
• Other requirements from committee
• Comprehensive Literature review
MULTI-PAPER DISSERTATIONAnother outline:
- Abstract
- Introduction of domain and preview of related papers (Glue)
- Paper 1
- Paper 2
- Paper 3
- Conclusion (Glue reprised)
Microsoft PowerPoint - Straub-the Multi-Paper Dissertation V201.ppt
Presentation of a multi-paper dissertation (example)Electronic Surveys: Biggest Bang for the Buck
Conclusion:- Abstract (Thesis statement: what will be done~leave to the last)
- Introduction (Glue for the 3 papers~introduction of the domain and preview of the 3 papers; historical significance)
- Paper 1 (Short introduction, Literature review, Method, ...etc)
- Paper 2
- Paper 3
- Conclusion
~Using the first reference and a 3-paper format
DISSERTATION PROPOSAL CONTENTS AND FORMAT
Title Page
Approval Page
Abstract (maximum of 350 words (about a half page) ; written in future tense-optional for proposal)
Table of Contents
List of Tables
List of Figures
CHAPTER I
INTRODUCTION
(Glues of the 3 studies)
Introduction (Introducing the topic of study—2 to 3 pages)
Statement of the Problem (basic difficulty - area of concern, felt need and goal to be
achieved)
Purpose of the Study (goal oriented-emphasizing practical outcomes that “may” occur)
Research Questions (to be answered or investigated)
Research Hypotheses (not null)
Significance of the Study (relevance, need—may overlap with the statement of problem)
Assumptions (postulates)
Limitations and Delimitations of the Study (limitation—factor that may affect the
study but is not under your control, i.e. lack of generalizability; delimitation
factor that is under your control, i.e. narrowing the focus)
Definition of Terms (largely conceptual here-with citations; operational definitions may
follow in Methodology Chapter)
Organization of the Study (outline remainder of the proposal in narrative form)
(Review of the literature and Methodology are done in separate 3 papers)
CHAPTER II
REVIEW OF THE LITERATURE
Introduction (organization of the chapter – overview)
Historical Background/Overview (overview of the theory and research literature)
The theory/research specific to the topic (sections/subsections should match questions)
Review of Literature Summary (what is known and unknown about the topic)
Contribution of the Study (what this study will add to the field)
CHAPTER III
METHODOLOGY
Introduction (organization of the chapter – overview)
Research Questions (restated here)
Null Hypotheses (if needed)
Research Methodology (quan., qual., or mixed)
Research Design (e.g., correlational, comparative, descriptive, etc.—Explain your
variables of analysis here)
Population and Sample (Define very specifically the population AND sample)
Instrumentation (tests, measures, observations, scales, and questionnaires)
Procedures (Field, classroom or laboratory e.g., instructions to subjects or distribution of
materials; data collection and recording—everything BEFORE analysis)
Data Analysis (statistical analysis or qualitative analysis explained in detail)
Reliability and Validity (here or as a subheading UNDER Instrumentation)
Summary of Methodology
BACK MATTER
References (must be in APA format)
Appendices (each Appendix has own title page; IRB in one appendix)
Vita
SAS command review
/*CHIH-TAO CHENG; SID:18597311;FINAL*/
OPTIONS LS=80;
OPTIONS MPRINT;
FILENAME INDATA1 'D:\SAS\BASIC.DAT';
DATA B (DROP= PREG); INFILE INDATA1;
INPUT WOMAN 1-5 PREG 1-6 PLACENWT 33-34;
PLACEWT=PLACENWT*10;
LABEL PLACEWT = 'PLACENTAL WEIGHT (GRAMS)';
/*SET MISSING VALUES FOR SELECTED VARIABLES*/
IF BIRTHWT IN( 999) THEN BIRTHWT =.;
LABEL GRWEIGHT = 'GRAVIDA WEIGHT (LBS)';
/*TITLE AND FORMAT*/
PROC FORMAT;VALUE SMOKE2F 0='NEVER SMOKED' 1=’EVER SMOKED’
TITLE1 'CHIH-TAO CHENG';
/*CALCULATION*/
DATA IRA1 (DROP=X);
/* SET (BEGINNING OF THE) FIRST YEAR VALUES */
YEAR = 2007;
AGE = 30;
IRASUM = 4000;
CONTRIB = 4000;
INTEREST = .05;
OUTPUT;
/* IRA WITH ANNUAL CONTRIBUTION AND DISBUSEMENT */
DO X = 1 TO 30;
YEAR = YEAR + 1;
AGE = AGE + 1;
IF YEAR = 2008 THEN CONTRIB = 5000;
IF YEAR > 2008 THEN CONTRIB = CONTRIB + 250;
IF AGE = 60 THEN CONTRIB = 0;
IRASUM = (IRASUM * (1 + INTEREST)) + CONTRIB;
OUTPUT;
END;
/*MERGE BASIC.DAT AND PLACENTA.DAT AND SELECT SINGLETON PREGNANCY*/
PROC SORT DATA=B; BY PREG;
PROC SORT DATA=P; BY PREG;
DATA BP; MERGE B(IN=A) P(IN=B); BY PREG;
IF A AND B;
IF FIRST.PREG AND LAST.PREG;
/*SAMPLING*/
DATA BP3; SET BP2;
IF UNIFORM(0) < .5;
/*MACRO*/
DATA WTGAINWIDE; INFILE WTGAIN LRECL=500;
INPUT PREG LMPMONTH LMPDAY LMPYEAR @@;
LMP_DATE=MDY(LMPMONTH,LMPDAY,LMPYEAR);
%MACRO OUT;
%DO I = 1 %TO 25;
INPUT EXMONTH&I EXDAY&I EXYEAR&I WEIGHT&I @@;
EX_DATE&I=MDY(EXMONTH&I,EXDAY&I,EXYEAR&I);
WEIGHT_KG&I=ROUND(WEIGHT&I*0.454,.1);
%END;
%MEND;
%OUT;
RUN;
/*WIDE TO LONG*/
DATA WTGAINLONG (KEEP=PREG LMP_DATE EXAM_DATE WEIGHT WTDIFF DAYSPREG TRI); SET WTGAINWIDE;
ARRAY EX_DATE EX_DATE1-EX_DATE26;
ARRAY WEIGHT_KG WEIGHT_KG1-WEIGHT_KG26;
DO OVER EX_DATE;
EXAM_DATE=EX_DATE;
WEIGHT=WEIGHT_KG;
WTDIFF = DIF(WEIGHT);
DAYSPREG = EXAM_DATE - LMP_DATE;
IF DAYSPREG <= 90 THEN TRI = 1;
IF 90 < tri =" 2;
IF DAYSPREG > 180 THEN TRI = 3;
IF DAYSPREG=. THEN TRI = .;
OUTPUT;
END;
/*PRINT*/
PROC PRINT DATA=BP (OBS=20);
PROC FREQ; TABLES GR_PFAV*HB_PFAV/CHISQ;
TITLE2 'CROSSTABULATION GRAVITA ATTITUDE/HUSBAND ATTITUDE';
FORMAT GR_PFAV HB_PFAV PFAVF.;
/*REGRESSION AND OUTPUT*/
PROC SORT DATA=WTGAINLONG; BY TRI;
PROC REG OUTEST=EST (RENAME=(DAYSPREG=BETA)) NOPRINT DATA=WTGAINLONG;
MODEL WTDIFF = DAYSPREG;
BY TRI;
PROC REG DATA=BASIC;
MODEL BIRTHWTG=SMOKE LMPTERM;
OUTPUT OUT=RESIDPRED R=RESID P=PRED;
/*CORRELATION MATRIX FOR THE 5 VARIABLES*/
PROC CORR;
VAR GRBMI BIRTHWT PLACENWT MEAN_SYS MEAN_DIA;
TITLE2 'CORR MATRIX: SELECTED MATERNAL/INFANT VARS';
/* T-TEST FOR THE 5 VARIABLES*/
PROC TTEST;
CLASS SMOKE2;
VAR GRBMI BIRTHWT PLACENWT MEAN_SYS MEAN_DIA;
TITLE2 'T-TEST BASED ON SMOKING STATUS';
FORMAT SMOKE2 SMOKE2F.;
/*ANOVA*/
PROC ANOVA DATA=BP_WTGAIN;
CLASS TRI;
MODEL WTDIFF=TRI;
MEANS TRI;
RUN;
/*X-Y PLOT*/
PROC GPLOT;PLOT MEAN_SYS*MEAN_DIA;
SYMBOL I=R VALUE=DOT;
TITLE2 'X-Y PLOT OF MEAN SYSTOLIC AND DIASTOLIC BLOOD PRESSURE';
RUN; QUIT;
Stata command review
use http://www.stata-press.com/data/mlmus/hsb, clear
keep if schoolid <=1317
egen meanses=mean(ses) ,by(schoolid)
tab schoolid ,gen(s)
desc
sum mathach, detail
tab female
tabstat mathach ses, by(schoolid) statistics(mean sd)
histogram mathach
twoway (scatter mathach ses) (lfit mathach ses), by(schoolid) legend (order (1 “observed” 2 ”fitted”)) xtitle(ses) ytitle(math achievement)
reg mathach ses
predict infrisk_fit
predict infrisk_stdres, rstandard
version 7
graph infrisk_stdres infrisk_fit, yline(0)
hettest
graph infrisk_stdres, box
qnorm infrisk_stdres
swilk infrisk_stdres
kdensity infrisk_stdres, normal
anova mathach ses schoolid, continuous(ses)
xtmixed mathach sector meanses devses sec_ses mn_ses || schoolid: devses, cov(unstr) mle
Monday, January 14, 2008
SAS export to Excel: replace
Solution: delete the old file containing the existing sheets before execution
SAS-L archives -- January 2003, week 4 (#438)
Other tips:
Hands-On Workshops NESUG 2006[pdf]
In the Know: SAS Tips and Techniques From Around
Word: finding and replacing
Replacing by two lines by separating using ^013
Finding and replacing non-printing characters
Finding and replacing characters using wildcardsSaturday, January 12, 2008
Selection of mobile device
- GPS~ mostly put in the car
- Wi-Fi~ use restricted more by availability of free connection ; also, for a mobile device, rather give (blogging/PIM) than take (searching/browsing/downloading)
- Mobile phone~ better small
(For a lot of time on meetings and transportation)
- PDA with GPS and Wi-Fi; and/or a phone with at most a medium sized screen featuring GPS ,PIM and recording (better than a phone with musics)
- A PDA with Wi-Fi, a GPS and a regular phone
- PDA with GPS and Wi-Fi and a regular phone
- musics : need to pay for collections
- videos (photos for others): need time for downloading and conversion
- games: need time to play
8gb ipod nano or 16gb ipod touch? - Yahoo! Answers
Apple iPod nano (3G) Review by LAPTOP Magazine
Review: Apple iPod Nano 3G | Geek.comStore Digital Photos on Your iPod
Apple Memory Card Readers, Apple Mac Products, iPod Accessories
iPod dock & multi flash card reader
Yes and No to Mac
(Office 2007, atlas.ti, SAS, Quosa)
No web-based text format use on mac
(no iblog, safari, ical, imail)
Yes to mac for multimedia/ websites for integration, one-click sync and large online storage
(iphoto, imovie, itune, iweb)
(Gallery, Websites)
(Do backup photos, movies, and songs, both original and on-line version)
Yes to mac for support of iPod
DIY: How to convert video for the iPod - MP3 Players
PSP Vs (4gb) iPod NanoUTF-8
Bookmarks should be converted from big5 to UTF-8 before imported to Safari or Firefox to avoid un-recognized Chinese.
Command: open terminal (Application-->Utility)
iconv -f big5 -t utf8 /Users/cdcheng/Desktop/links/bookmark.htm /Users/cdcheng/Desktop/links/bookmark_utf8.htm
Still failed
Wednesday, January 9, 2008
Word tricks ~section of SAS commands
- Style
- Use style and hyperlinks
- Use bookmark and hyperlinks
- Section
- section break (continuous)
- F8, F5, section-->next (last section doesn't work)
Criteria for services/ softwares
- Life-long support
- Google-ralated
- Mainstream
- Cross platform
- Online
- Synchronization/ backup
- Online
- Bulk backup/ upload/ download
- Green or as add-on
- Online
- Support Chinese characters
- Free
- Mainstream
Blogger | iDisk | Gmail | |
1. Life-long support | Yes | Yes | Yes |
2. Cross platform | Yes | Working | Yes |
3. Synchronization/ backup | Yes | Working | No |
4. Green or as add-on | Yes | Yes | Yes |
5. Support Chinese characters | Yes | Yes | Yes |
6. Free | Yes | No | Yes |
Foxmarks | MS word | EndNote | |
1. Life-long support | Yes | Yes | Yes |
2. Cross platform | Yes | Yes | Working |
3. Synchronization/ backup | Yes | G. document | Yes |
4. Green or as add-on | Yes | G. document | Working |
5. Support Chinese characters | Yes | Yes | Yes |
6. Free | Yes | Yes | Yes |
Atlas.ti | SAS | SUDAAN | |
1. Life-long support | Yes | Yes | Yes |
2. Cross platform | No | No | No |
3. Synchronization/ backup | Yes | Yes | Yes |
4. Green or as add-on | No | No | No |
5. Support Chinese characters | Unknown | Unknown | Unknown |
6. Free | Yes | Yes | No |
Life stages/ curves/ cycles/ development
- Life events
- Quantifying measures: duration, score, ranking, satisfaction...etc.
- Hyperlinks: information
- Labels
- Presentation
- Map-like
- With close-ups
- High-low
- With filters (labels)
- Search for pre-existing software
- Search for package/language for software development
- Search for platform for software development
- Software innovation discussion forums/ software gears
Tuesday, January 8, 2008
##HIDEME##
PS: You need to upgrade the template if the blog has a history.
Other teaching materials
http://jamesteohart.blogspot.com/2007/11/blogger.html