# NOT RUN {
tb <- data.frame(Sm1 = 1:5, Sm2 = 1:5, y = 1:5)
# estimate default model
em_n5 <- em_2var(tb, "Sm1", "Sm2", "y")
# estimate model with 3 competitors only
em_n3 <- em_2var(tb, "Sm1", "Sm2", "y", N_max = 3)
# }
# NOT RUN {
# estimate model with different initial conditions
em_difc <- em_2var(tb, "Sm1", "Sm2", "y", alpha0 = rep(0.2, 5), gamma0 = rep(1.1, 5))
# estimate model with example data
tb <- load_example_data()
em <- em_2var(tb, "Populacao", "RendaPerCapita", "n_agencias")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab