intro to nhanes sampling
play

Intro to NHANES & Sampling Kaelen Medeiros Product Data - PowerPoint PPT Presentation

DataCamp Experimental Design in R EXPERIMENTAL DESIGN IN R Intro to NHANES & Sampling Kaelen Medeiros Product Data Scientist at DataCamp DataCamp Experimental Design in R Intro to NHANES dataset NHANES = National Health and Nutrition


  1. DataCamp Experimental Design in R EXPERIMENTAL DESIGN IN R Intro to NHANES & Sampling Kaelen Medeiros Product Data Scientist at DataCamp

  2. DataCamp Experimental Design in R Intro to NHANES dataset NHANES = National Health and Nutrition Examination Survey Conducted by the National Center for Health Statistics (NCHS), a division of the Centers for Disease Control (CDC) Data collected a variety of ways, including interviews & a physical exam Questions cover medical, dental, socioeconomic, dietary, and general health- related conditions

  3. DataCamp Experimental Design in R Intro to Sampling Probability Sampling : probability is used to select the sample (in various ways) Non-probability Sampling : probability is not used to select the sample Voluntary response: whoever agrees to respond is the sample Convenience sampling: subjects convenient to the researcher are chosen.

  4. DataCamp Experimental Design in R Sampling Simple Random Sampling (SRS) Cluster Sampling sample() cluster(dataset, cluster_var_name, number_to_select, method = "option") Stratified Sampling Systematic Sampling dataset %>% group_by(strata_variable) %>% sample_n() Multi-stage Sampling

  5. DataCamp Experimental Design in R EXPERIMENTAL DESIGN IN R Let's practice!

  6. DataCamp Experimental Design in R EXPERIMENTAL DESIGN IN R Randomized Complete Block Designs Kaelen Medeiros Product Data Scientist at DataCamp

  7. DataCamp Experimental Design in R RCBDs Randomized - the treatment is assigned randomly inside each block Complete - each treatment is used the same number of times in every block Block - experimental groups are blocked to be similar (e.g. by sex) Design - this is your experiment!

  8. DataCamp Experimental Design in R RCBD Workflow

  9. DataCamp Experimental Design in R agricolae library(agricolae) trt <- letters[1:4] rep <- 4 design.rcbd <- design.rcbd(trt, r = rep, seed = 42, serie = 0) design.rcbd$sketch [,1] [,2] [,3] [,4] [1,] "d" "c" "a" "b" [2,] "b" "a" "d" "c" [3,] "d" "a" "b" "c" [4,] "a" "b" "d" "c"

  10. DataCamp Experimental Design in R EXPERIMENTAL DESIGN IN R Let's practice!

  11. DataCamp Experimental Design in R EXPERIMENTAL DESIGN IN R Balanced Incomplete Block Designs (BIBD) Kaelen Medeiros Product Data Scientist at DataCamp

  12. DataCamp Experimental Design in R Balanced Incomplete Block Designs Balanced - each pair of treatments occur together in a block an equal number of times Incomplete - not every treatment will appear in every block Block - experimental groups are blocked to be similar (e.g. by sex) Design - this is your experiment!

  13. DataCamp Experimental Design in R Is there a BIBD? Let: t = # of treatments k = # of treatments per block r = # replications ( k − 1) λ = r × t − 1

  14. DataCamp Experimental Design in R BIBD examples (1) ( k − 1) λ = r × t − 1 λ = 2 * (2-1) / 4-1 λ = 2/3 = 0.667

  15. DataCamp Experimental Design in R Invalid BIBD

  16. DataCamp Experimental Design in R BIBD examples (2) ( k − 1) λ = r × t − 1 λ = 3 * (3-1) / 4-1 λ = 6/3 = 2

  17. DataCamp Experimental Design in R Valid BIBD

  18. DataCamp Experimental Design in R EXPERIMENTAL DESIGN IN R Let's practice!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend