R Under development (unstable) (2024-09-15 r87152 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > > library(aster2) Loading required package: Matrix This is beta software. Unless you need to do aster models with dependence groups, use package "aster" instead. See help(aster2-package) for differences from package "aster" and examples. > > data(test1) > fred <- asterdata(test1, + vars = c("m1", "m2", "m3", "n1", "n2", "b1", "p1", "z1"), + pred = c(0, 0, 0, 1, 1, 2, 3, 6), group = c(0, 1, 2, 0, 4, 0, 0, 0), + code = c(1, 1, 1, 2, 2, 3, 4, 5), + families = list(fam.multinomial(3), "normal.location.scale", + "bernoulli", "poisson", "zero.truncated.poisson")) > is.validasterdata(fred) [1] TRUE > > fred <- asterdata(test1, vars = c("m1", "n1", "n2"), pred = c(0, 1, 1), + group = c(0, 0, 2), code = c(1, 2, 2), + families = list("bernoulli", "normal.location.scale")) > is.validasterdata(fred) [1] TRUE > > fred <- asterdata(test1, + vars = c("m1", "n1", "m2", "b1", "z1", "m3", "p1", "n2"), + pred = c(0, 1, 0, 3, 4, 0, 6, 1), group = c(0, 0, 1, 0, 0, 3, 0, 2), + code = c(1, 2, 1, 3, 5, 1, 4, 2), + families = list(fam.multinomial(3), "normal.location.scale", + "bernoulli", "poisson", "zero.truncated.poisson")) > is.validasterdata(fred) [1] TRUE > > > > proc.time() user system elapsed 1.32 0.21 1.51