Usage
glmulti(y, xr, data, exclude=c(), intercept=TRUE, marginality=FALSE, level=2, filename="glmulti.output", method="h", crit="aicc", chunk=1, chunks=1, minsize=0, maxsize=-1, minK=0, maxK=-1, plotty=TRUE, confsetsize=100, popsize=100, mutrate=10^-3,sexrate=0.1,imm=0.3, deltaM=0.05, deltaB=0.05, conseq=5, fitfunc=glm, resumefile = "id", ...)
Arguments
y
The name of your dependent variable, as used in your data frame. E.g. "MyResponse"
xr
A vector of the names of your explanatory variables (factors and/or covariates). E.g. c("Age","Height","Sex")
data
A data frame containing your data (observations as rows, variables as (named) columns.
exclude
This sets a constraint on candidate models. A vector of some terms (main effects and/or interactions) that should be excluded from the candidate models. Use ":" for interactions. E.g. c("Age:Sex","Height:Age")
intercept
Whether to include an intercept in the formulas or not. Default is TRUE, so all formulas will start with "~1"
marginality
Whether to use the general marginality rule or not. Default is FALSE. With TRUE, all predictors found in interaction terms are also included as main effects.
level
The level of interaction between explanatory variables to be considered. Currently only 1 (only main effects) or 2 (main effects plus all pairwise interactions) are supported.
filename
A file name to be used when exporting the results. Extension ".txt" will be automatically appended.
method
What the function should do: "d" for a simple report of the number of candidate models, "h" for exhaustive screening of the candidates, "g" for a genetic algorithm search, "r" to resume a previous GA simulation.
crit
The Information Criterion to be used ("aic", "aicc" or "bic")
chunk
When splitting an exhaustive screening ("h") approach, this indicates which part (on the chunks
parts) this program should do.
chunks
When splitting an exhaustive screening ("h") approach, this indicates the total number of parts (i.e. into how many pieces the job has been splitted.)
minsize
This sets a constraint on candidate models. Minimal number of TERMS (main effects or interactions) to be included in candidate models (negative = no constraint)
maxsize
This sets a constraint on candidate models. Maximal number of TERMS to be included in candidate models (negative = no constraint)
minK
This sets a constraint on candidate models. Minimal complexity of candidate models (negative = no constraint)
maxK
This sets a constraint on candidate models. Maximal complexity of candidate models (negative = no constraint)
plotty
whether to plot the progress of the IC profile when running. Default is TRUE.
confsetsize
How many models should be returned in the confidence set of models?
popsize
The population size for the genetic algorithm
mutrate
The per locus mutation rate for genetic algorithm, between 0 and 1.
sexrate
The rate of sexual reproduction for the genetic algorithm, between 0 and 1.
imm
The rate of immigration for the genetic algorithm, between 0 and 1.
deltaM
The target change in mean IC (defines the stop rules for the GA)
deltaB
The target change in best IC (defines the stop rules for the GA)
conseq
The target successive number of times with no improvement (i.e. target changes have been attained) (defines the stop rule for the GA). The greater it is, the more stringent the stop rule.
fitfunc
The fitting function to bee used. Default is glm of course, but you can provide any custom function that matches the parameters/returned values of glm.
resumefile
The name of files (without extension) from which to restore the java objects, when using method "r". Default: taken to be filename.
...
Further options to be passed to the fitting function. E.g. maxit=50
or family=binomial