Try this.
# the data
y <- sample(0:1, 50, replace=T) # response
x1 <- sample(0:1, 50, replace=T) # explanatory var
x2 <- sample(0:1, 50, replace=T) # explanatory var
# the number of regressors
nregressors <- 2
# all possible combinations
comb <- as.matrix(expand.grid(rep(list(0:1), times=nregr
Hi all,
I am trying to make a script that prints all possible models from a model
I've created using nls(). It is a logisitc model which in total includes 13
variables. So its >8000 models I need to create, which I don't want to do
manually. I've tried modify scripts made for linear models with no
2 matches
Mail list logo