STRATIFIED SAMPLING WITH PROPORTIONAL ALLOCATION PART 1.

Опубликовано: 06 Август 2026
на канале: Curso de R y LaTeX.
177
2

== Subscribe! ==
Become a member of this channel to enjoy benefits:
   / @cursoderylatex  

Learn more about R and LaTeX.
Teaching materials at:
http://rpubs.com/jorgeR
https://jlvia1191.wixsite.com/easymath

LATEX-R - CODE
===========================================
library(tidyverse)

Sample size n = 60

set.seed(2026)

df = read_table('pulse.txt')

df1 = data.frame(table(df$`Smokes?`))

df1$Pro = data.frame(prop.table(table(df$`Smokes?`)))$Freq

df1

==============================================
#LaTeXCourse #RStudioCourse #RSweaveCourse
Want to collaborate with the channel? Simply use any of our uploads, share it, give it a *like* and subscribe. (https://goo.gl/eMTmmy) Thanks.....