Advertisement
Guest User

Untitled

a guest
May 24th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. set.seed(1234)
  2.  
  3. library(Matching)
  4.  
  5. # population
  6. data(lalonde)
  7. lalonde$PNR <- 1:(length(lalonde$age))
  8.  
  9. # sample of population
  10. population_ID <- sample(1:length(lalonde$PNR), 350)
  11. sample <- lalonde[population,]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement