How to realize random in SAS Professor: Lijue Student: Zhengliang

Slides:



Advertisements
Similar presentations
The Application of Propensity Score Analysis to Non-randomized Medical Device Clinical Studies: A Regulatory Perspective Lilly Yue, Ph.D.* CDRH, FDA,
Advertisements

One-sample T-Test Matched Pairs T-Test Two-sample T-Test
Randomized Complete Block and Repeated Measures (Each Subject Receives Each Treatment) Designs KNNL – Chapters 21,
Significance Testing.  A statistical method that uses sample data to evaluate a hypothesis about a population  1. State a hypothesis  2. Use the hypothesis.
Experimental Statistics - week 5
A. The Basic Principle We consider the multivariate extension of multiple linear regression – modeling the relationship between m responses Y 1,…,Y m and.
Propensity Score Matching Lava Timsina Kristina Rabarison CPH Doctoral Seminar Fall 2012.
Estimation and Reporting of Heterogeneity of Treatment Effects in Observational Comparative Effectiveness Research Prepared for: Agency for Healthcare.
INT 506/706: Total Quality Management Lec #9, Analysis Of Data.
Assignmnet: Simple Random Sampling With Replacement Some Solutions.
Assignmnet: Simple Random Sampling With Replacement Some Solutions.
Chapter 28 Design of Experiments (DOE). Objectives Define basic design of experiments (DOE) terminology. Apply DOE principles. Plan, organize, and evaluate.
Sampling and Experimental Control Goals of clinical research is to make generalizations beyond the individual studied to others with similar conditions.
T T07-01 Sample Size Effect – Normal Distribution Purpose Allows the analyst to analyze the effect that sample size has on a sampling distribution.
Incomplete Block Designs
Advanced Statistics for Interventional Cardiologists.
X 11 X 12 X 13 X 21 X 22 X 23 X 31 X 32 X 33. Research Question Are nursing homes dangerous for seniors? Does admittance to a nursing home increase risk.
TA: Natalia Shestakova October, 2007 Labor Economics Exercise session # 1 Artificial Data Generation.
Chapter 20 Creating Multiple Observations from a Single Record Objectives Create multiple observations from a single record containing repeating blocks.
5-5 Inference on the Ratio of Variances of Two Normal Populations The F Distribution We wish to test the hypotheses: The development of a test procedure.
April 6 Logistic Regression –Estimating probability based on logistic model –Testing differences among multiple groups –Assumptions for model.
Article Review Cara Carty 09-Mar-06. “Confounding by indication in non-experimental evaluation of vaccine effectiveness: the example of prevention of.
Logistic Regression Demo: dmdata2 and dmdata3 Bankloan Assignment: subscribe_training and subscribe_validate.
Grant Brown.  AIDS patients – compliance with treatment  Binary response – complied or no  Attempt to find factors associated with better compliance.
Three Statistical Issues (1) Observational Study (2) Multiple Comparisons (3) Censoring Definitions.
T06-02.S - 1 T06-02.S Standard Normal Distribution Graphical Purpose Allows the analyst to analyze the Standard Normal Probability Distribution. Probability.
Notes 1.3 (Part 1) An Overview of Statistics. What you will learn 1. How to design a statistical study 2. How to collect data by taking a census, using.
T T Population Sample Size Calculations Purpose Allows the analyst to analyze the sample size necessary to conduct "statistically significant"
Using Propensity Score Matching in Observational Services Research Neal Wallace, Ph.D. Portland State University February
Lecture 4 Ways to get data into SAS Some practice programming
Computer Science I: Understand how to evaluate expressions with DIV and MOD Random Numbers Reading random code Writing random code Odds/evens/…
BMTRY 789 Lecture 6: Proc Sort, Random Number Generators, and Do Loops Readings – Chapters 5 & 6 Lab Problem - Brain Teaser Homework Due – HW 2 Homework.
The population in a statistical study is the entire group of individuals about which we want information The population is the group we want to study.
Gary L. Kamer Statistician OSB/DBS. 2 Statistical Issues at Time of PMA Review Clinical Study Design Excess All-cause Late Mortality (31 to 365 days)
Todd Wagner, PhD February 2011 Propensity Scores.
Sphericity. More on sphericity With our previous between groups Anova we had the assumption of homogeneity of variance With our previous between groups.
Analysis of Covariance KNNL – Chapter 22. Analysis of Covariance Goal: To Compare treatments (1-Factor or Multiple Factors) after Controlling for Numeric.
More repeated measures. More on sphericity With our previous between groups Anova we had the assumption of homogeneity of variance With repeated measures.
Propensity Score Matching in SPSS: How to turn an Audit into a RCT
Outline of Stratification Lectures Definitions, examples and rationale (credibility) Implementation –Fixed allocation (permuted blocks) –Adaptive (minimization)
Statistics Unit Check your understanding…. Can you answer these? What does the standard deviation of a sample represent? What is the difference between.
Matching methods for estimating causal effects Danilo Fusco Rome, October 15, 2012.
LECTURE 23 THURSDAY, 12 November
Hypothesis Testing Start with a question:
Introduction to Hypothesis Test – Part 2
Applied Business Forecasting and Regression Analysis
Constructing Propensity score weighted and matched Samples Stacey L
What is Survival Model and why it is important?
Chapter Six Normal Curves and Sampling Probability Distributions
Statistical Analysis of the Randomized Block Design
Match-Merge in the Data Step
Assume as previously that we have k samples on as many treatments
Creating the Example Data
Introduction to DATA Step Programming SAS Basics II
Experimental Design.
Type=Corr SAS.
Introduction to Logistic Regression
Non-parametric Analysis of the Variance in SAS®
The European Statistical Training Programme (ESTP)
Introduction to SAS Essentials Mastering SAS for Data Analytics
Chapter: 9: Propensity scores
Experimental Design.
Psychological Experimentation
Dry Run Fix it Write a program
Analysis of Covariance
Hans Baumgartner Penn State University
Finding Statistics from Data
Wilcoxon Rank-Sum Test
Finding Statistics from a frequency table
Finding Statistics from a Grouped frequency table
Presentation transcript:

How to realize random in SAS Professor: Lijue Student: Zhengliang

The definition of random Random sampling and random grouping Random sampling :each element of the population has an equal chance of been selected. Ensuring representative of sample. Random grouping: each element of the population has an equal chance entering different groups(n ge 2). Ensuring the balance between groups.---Today’s presetation

Random-1 data ccc; do number=1 to 240; r=UNIFORM(2011);output; end; proc rank data=ccc out=ddd; ranks r_rank; var r;run; data eee; set ddd; if r_rank<=120 then group='A'; else group='B';run; proc print;run; PROC PRINT NOOBS; VAR number group; RUN;

Random-2 proc plan seed=2011; factors block=40 length=6; output out=fff; run; data ggg; SET fff; number=_n_; if length <=3 then group='A group'; else group='B group'; PROC PRINT NOOBS; VAR number group; RUN;

Pscore and Non-random Calculate the propensity score of every objects by employing a logistic regression, then have quintile stratification to get a new sample of which the covariates reaches the balance between treatment group and control group. Statistic and analyze the non-randomized clinical trial data with quintile stratification method, and the imbalance of concomitant variable between two groups were adjusted. In situation where randomized trials are not feasible, propensity score is an effective means to analyze the observational data.

SAS code data pscore01; input id x1-x4 treatment; cards; …… run; proc logistic; model treatment=x1-x4; output out=pscoredat pred=pscore; proc print data=pscoredat;

Thanks for your suggestions