Displaying 20 results from an estimated 1681 matches for "aics".
Did you mean:
aic
2017 Oct 24
0
Issue of reproducibility with gam and lm.wfit in different versions of R
Dear R users,
I recently stumbled upon problems of reproducibility while running GAM analyses in different R and gam package versions. In the example below, a small dataset is created in which the y and x1 variables are 100% correlated. The intents of this example were primarily for regression testing and, secondarily, to evaluate how the gam algorithm behaves under extreme/limit conditions.
I
2007 Aug 03
3
question about logistic models (AIC)
Een ingesloten tekst met niet-gespecificeerde tekenset is
van het bericht gescrubt ...
Naam: niet beschikbaar
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070803/79b6292b/attachment.pl
2005 Oct 12
1
step.gam and number of tested smooth functions
Hi,
I'm working with step.gam in gam package. I'm interested both in spline and
lowess functions and when I define all the models that I'm interested in I get
something like that:
> gam.object.ALC<-gam(X143S~ALC,data=dane,family=binomial)
>
2001 Sep 11
2
AIC
Dear R collegues,
I'm trying to understand what's AIC in R (ver. 1.3.1), and I'm getting a
different answer if I look at the AIC(of the fitted model) or the aic in
the summary( of the fitted model). Is this correct? Can somebody explain
me the difference between the two values? or Is the AIC criterion not
appropiated for Poisson models?
R session:
> t1 <- glm(tax ~ areal,
2001 Sep 11
2
AIC
Dear R collegues,
I'm trying to understand what's AIC in R (ver. 1.3.1), and I'm getting a
different answer if I look at the AIC(of the fitted model) or the aic in
the summary( of the fitted model). Is this correct? Can somebody explain
me the difference between the two values? or Is the AIC criterion not
appropiated for Poisson models?
R session:
> t1 <- glm(tax ~ areal,
2007 Dec 18
1
How can I extract the AIC score from a mixed model object produced using lmer?
I am running a series of candidate mixed models using lmer (package lme4)
and I'd like to be able to compile a list of the AIC scores for those
models so that I can quickly summarize and rank the models by AIC. When I
do logistic regression, I can easily generate this kind of list by creating
the model objects using glm, and doing:
> md <- c("md1.lr", "md2.lr",
2007 Nov 23
4
help pleaseeeeeeeee
Dears Sirs
During my computational work I encountered unexpected behavior when calling
"ar" function, namely
# time series
x<-ts(c(-0.2052083,-0.3764986,-0.3762448,0.3740089,0.2737568,2.8235722,-
1.7783313,0.2728676,-0.3273164),start=c(1978,3),frequency=4,end=c(1980,3))
# ar function
res.ar<-ar(x,aic=TRUE,demean=F)
# call "ar" again and ............
2012 May 31
2
one more piece of info on AIC
just one other thing about the AIC issue:
there is a line in glm.fit which is the following:
aic = aic(y, n, mu, weights, dev) + 2 * rank
but I couldn't find the function aic so I couldn't investigate further. It
looks suspicious though because it seems to me like
it should be
aic = -2*likelihood + 2 * rank
if anyone could help me find the aic function it's appreciated.
2008 Nov 28
2
AIC function and Step function
I would like to figure out the equations for calculating "AIC" in both
"step() function" and "AIC () function". They are different. Then I
just type "step" in the R console, and found the "AIC" used in "step()
function" is "extractAIC". I went to the R help, and found:
"The criterion used is
AIC = - 2*log L + k *
2011 Jun 22
1
AIC() vs. mle.aic() vs. step()?
I know this a newbie question, but I've only just started using AIC for
model comparison and after a bunch of different keyword searches I've
failed to find a page laying out what the differences are between the
AIC scores assigned by AIC() and mle.aic() using default settings.
I started by using mle.aic() to find the best submodels, but then I
wanted to also be able to make comparisons
2006 Jun 05
2
Calculation of AIC BIC from mle
R 2.3.0, all packages up to date
Linux, SuSE 10.0
Hi
I want to calculate AIC or BIC from several results from mle calculation.
I found the AIC function, but it does not seem to work with objects of
class mle -
If I execute the following:
ml1 <- mle(...)
AIC(ml1)
I get the following error messale:
Error in logLik(object) : no applicable method for "logLik"
Therefore I am using the
2008 Oct 14
2
help about how can R compute AIC?
Hello.
I need to know how can R compute AIC when I study a regression model?
For example, if I use these data:
growth tannin
1 12 0
2 10 1
3 8 2
4 11 3
5 6 4
6 7 5
7 2 6
8 3 7
9 3 8
and I do
model <- lm (growth ~ tannin)
AIC(model)
R responses:
38.75990
I know the following formula to compute AIC:
AIC=
2006 Dec 16
2
question about trailing arguments in an S4 method
...weights=TRUE to calculate AIC weights
corr=TRUE, nobs to calculate AICc
delta=TRUE to put a delta-AIC column in the output.
The problem is that AIC is defined as
AIC(object, ..., k=2) where k is the constant associated
with the penalty term and ... is a list of objects
that will have their AICs calculated and listed.
Thus I'm not allowed (I think) to extend the definition to
AIC(object, ..., nobs, corr=FALSE, delta=FALSE, weights=FALSE, k=2)
An ugly solution to this is to go through the ... list and
pull out the values of any of the other arguments I want, and
then set them to NUL...
2008 Sep 17
2
Command Prompt Question
Could someone please tell me how to stop the package/function name from
being included before the command prompt? This started happening today
after I made some changes to my Rprofile.site file and I don't know why.
For example: if I enter example(AIC), instead of just getting the
regular '>' before each output line, I get 'AIC>' instead. I only want
the '>'
2017 Jun 08
1
stepAIC() that can use new extractAIC() function implementing AICc
I would like test AICc as a criteria for model selection for a glm using
stepAIC() from MASS package.
Based on various information available in WEB, stepAIC() use
extractAIC() to get the criteria used for model selection.
I have created a new extractAIC() function (and extractAIC.glm() and
extractAIC.lm() ones) that use a new parameter criteria that can be AIC,
BIC or AICc.
It works as
2018 Jun 03
2
aic() component in GLM-family objects
Is it generally known/has it been previously discussed here that the
$aic() component in GLM-family objects (e.g. results of binomial(),
poisson(), etc.) does not as implemented actually return the AIC, but
rather -2*log-likelihood + 2*(model_has_scale_parameter) ? Can anyone
in this forum gauge how a documentation patch would be received?
This behaviour does not seem to be documented in ?family
2011 Jan 05
0
Nnet and AIC: selection of a parsimonious parameterisation
Hi All,
I am trying to use a neural network for my work, but I am not sure about my
approach to select a parsimonious model. In R with nnet, the IAC has
not been defined for a feed-forward neural network with a single hidden layer.
Is this because it does not make sens mathematically in this case?
For example, is this pseudo code sensible?
Thanks in advance for your help. I am sorry if this
2010 Jan 26
1
AIC for comparing GLM(M) with (GAM(M)
...mate? Of course I will do additional model
plotting using residuals etc. as well but it seems important to me to
have a more direct method of comparing these models (I’m aware of the
fact that AIC is a rough estimate when it comes to generalized mixed
models).
- If so, how can I compute the AICs using gam and gamm4 such that they
can be compared A) with each other and B) with AICs obtained from GLM/
GLMM?
Any suggestions are welcome
Andrea
[[alternative HTML version deleted]]
2005 Apr 15
2
negetative AIC values: How to compare models with negative AIC's
Dear,
When fitting the following model
knots <- 5
lrm.NDWI <- lrm(m.arson ~ rcs(NDWI,knots)
I obtain the following result:
Logistic Regression Model
lrm(formula = m.arson ~ rcs(NDWI, knots))
Frequencies of Responses
0 1
666 35
Obs Max Deriv Model L.R. d.f. P C Dxy
Gamma Tau-a R2 Brier
701 5e-07 34.49
2008 Dec 19
4
Akaike weight in R
Odette
> Wondering how can I generate "Akaike weight" with R? I know the description,
> but is there any function to generate by R on the web-site or R library?
> I am using GLM or GLMM (family=binomial), so would be appreciated if you
> help me.
You could have a look at this.
http://bm2.genes.nig.ac.jp/RGM2/R_current/library/aod/man/summary.aic.html
Which is in the OAD