df <- data.frame(chats = c(2000, 3000, 4000, 3000), ses = c(100, 200, 150, 180),
Cont_var = c(100, 150, 100, 50))
# formula notation
betta(formula = chats ~ Cont_var, ses = ses, data = df)
# direct input
betta(c(2000, 3000, 4000, 3000), c(100, 200, 150, 180), cbind(1, c(100, 150, 100,
50)))
## handles missing data
betta(c(2000, 3000, 4000, 3000), c(100, 200, 150, NA))
## A test for heterogeneity of apples diversity estimates vs butterfly estimates
betta(c(1552, 1500, 884), c(305, 675, 205), cbind(1, c(0, 0, 1)))
Run the code above in your browser using DataLab