Re: [R] model selection

2015-06-16 Thread Bert Gunter
Wrong list! This is about R. Post on a statistics list like stats.stackexchange.com for statistics questions. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Jun 15, 2015 at 3:55 PM, bruno cid

[R] model selection

2015-06-15 Thread bruno cid
Hi friends, Im trying to make a model selection comparing models built with "lm" function (package "stats") and "lme" function (package "nlme"). Do you know if there is a problem to compare these models with the function "AICtab" (package "bbmle). Thanks!!! Bruno Cid Crespo GuimarãesMestre em

Re: [R] model selection for nested factorial design

2014-05-14 Thread Ben Bolker
K C gmail.com> writes: > [snip] > I have a dataset composed of observations taken from 16 separate > experimental panels, each nested into one of 4 conditions (Treatment A > Level 1, Treatment A Level 2, Treatment B Level 1, Treatment > B Level 2; see > photo: http://imgur.com/ZbzFPNq). The

[R] model selection for nested factorial design

2014-05-14 Thread K C
Stats beginner here. I have a dataset composed of observations taken from 16 separate experimental panels, each nested into one of 4 conditions (Treatment A Level 1, Treatment A Level 2, Treatment B Level 1, Treatment B Level 2; see photo: http://imgur.com/ZbzFPNq). There are 100 observations of t

[R] Model selection exponential and gamma distribution using cross validation

2013-12-09 Thread Man Zhang
Dear All, I have fitted the exponential and gamma model to my univariate data and obtained the MLE estimates using the R package "fitdistr", now I'm trying to do model selection based on leave-one-out cross validation, are there any readily avaliable R package to do this. Thanks! [[alt

Re: [R] model selection with step()

2013-12-06 Thread Adams, Jean
Karen, Look at the help for the drop1() function. ?drop1 There you will see, "The hierarchy is respected when considering terms to be added or dropped: all main effects contained in a second-order interaction must remain, and so on." So, for fit2, the step() function will only consider dropp

[R] model selection with step()

2013-12-06 Thread Karen Keating
I am using the step() function to select a model using backward elimination, with AIC as the selection criterion. The full regression model contains three predictors, plus all the second order terms and two-way interactions. The full model is fit via lm() using two different model formulae. One

Re: [R] Model selection: On the use of the coefficient determination(R2) versus the frequenstist (AIC) and Bayesian (AIC) approaches

2013-04-13 Thread Bert Gunter
This is off topic here-- it has nothing to do with R, per se. Post on a statistics list such as stats.stackexchange.com instead. -- Bert On Sat, Apr 13, 2013 at 5:41 PM, Kaptue Tchuente, Armel wrote: > Dear all, > > I'm modeling growth curve of some ecosystems with respect to their > rainfall

[R] Model selection: On the use of the coefficient determination(R2) versus the frequenstist (AIC) and Bayesian (AIC) approaches

2013-04-13 Thread Kaptue Tchuente, Armel
Dear all, I'm modeling growth curve of some ecosystems with respect to their rainfall-productivity relationship using a simple linear regression (ANPP(t)=a+b*Rain(t)) and a modified version of the Brody Model ANPP(t)=a*(1-exp(-b*rain(t))) I would like to know why the "best model" is function o

Re: [R] Model Selection based on individual t-values with the largest possible number of variables in regression

2013-04-03 Thread Frank Harrell
To say that these strategies represent bad statistical practice is to put it mildly. Frank mister_O wrote > Dear R-Community, > > When writing my master thesis, I faced with difficult issue. Analyzing the > capital structure determinants I have one dependent variable (Total debt > ratio = TD) and

Re: [R] Model selection in nonstationary VAR

2013-02-23 Thread Uwe Ligges
On 23.02.2013 19:33, Arun Kumar Saha wrote: which method in statistics is completely free from model misspecification? The data. Uwe Ligges Thanks and regards, _ Arun Kumar Saha, FRM QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST Vis

Re: [R] Model selection in nonstationary VAR

2013-02-23 Thread Arun Kumar Saha
which method in statistics is completely free from model misspecification? Thanks and regards, _ Arun Kumar Saha, FRM QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST Visit me at: http://in.linkedin.com/in/ArunFRM __

[R] Model selection in nonstationary VAR

2013-02-22 Thread M M
Folks, Is there any implementation available in R for the simultaneous selection of lag order and rank of a nonstationary VAR as described in Chao & Phillips (1999): Model selection in partially nonstationary vector autoregressive processes with reduced rank structure, J. Econ. (91). Or any othe

Re: [R] model selection with spg and AIC (or, convert list to fitted model object)

2012-12-04 Thread Ravi Varadhan
: Sunday, December 02, 2012 5:04 PM To: Ravi Varadhan Cc: Adam Zeilinger (zeil0...@umn.edu); r-help@r-project.org Subject: Re: [R] model selection with spg and AIC (or, convert list to fitted model object) Dear Ravi, Thank you so much for the help. I switched to using the optimx function but I

Re: [R] model selection with spg and AIC (or, convert list to fitted model object)

2012-12-02 Thread Ben Bolker
Adam Zeilinger umn.edu> writes: > > Dear R Help, > > I have two nested negative log-likelihood functions that I am optimizing > with the spg function [BB package]. I would like to perform model > selection on these two objective functions using AIC (and possibly > anova() too). However, th

Re: [R] model selection with spg and AIC (or, convert list to fitted model object)

2012-12-02 Thread Adam Zeilinger
Dear Ravi, Thank you so much for the help. I switched to using the optimx function but I continue to use the spg method (for the most part) because I found that only spg consistently converges give different datasets. I also decided to use AIC rather that a likelihood ratio test. I have a ne

[R] model selection with spg and AIC (or, convert list to fitted model object)

2012-10-11 Thread Ravi Varadhan
Adam, See the attached R code that solves your problem and beyond. One important issue is that you are enforcing constraints only indirectly. You need to make sure that P1, P2, and P3 (which are functions of original parameters and time) are all between 0 and 1. It is not enough to impose co

[R] model selection with spg and AIC (or, convert list to fitted model object)

2012-10-10 Thread Adam Zeilinger
Dear R Help, I have two nested negative log-likelihood functions that I am optimizing with the spg function [BB package]. I would like to perform model selection on these two objective functions using AIC (and possibly anova() too). However, the spg() function returns a list and I need a fi

Re: [R] model selection using logistf package

2011-09-27 Thread Frank Harrell
Stepwise variable selection without heavy penalization is invalid. Frank mael wrote: > > Hi everyone, > > I'm wondering how to select the "best" model when using logistf? AIC does > not work neither does anova. I tried fitting a glm model but got the > separation warning message so I tried using

[R] model selection using logistf package

2011-09-27 Thread mael
Hi everyone, I'm wondering how to select the "best" model when using logistf? AIC does not work neither does anova. I tried fitting a glm model but got the separation warning message so I tried using the logistf package but as I stepwise simplify the model I don't know if the simplification is mot

Re: [R] Model Selection with Phylogenetic Independent Contrasts

2011-09-15 Thread Ben Bolker
rjswift gmail.com> writes: > > I'm trying to select a model under PCA using independent contrasts. Since > PICs need to be forced through the origin I've been using lmorigin for the > original regression, but it doesn't appear that stepAIC recognizes it. I > keep receiving an error message - "Er

[R] Model Selection with Phylogenetic Independent Contrasts

2011-09-14 Thread rjswift
I'm trying to select a model under PCA using independent contrasts. Since PICs need to be forced through the origin I've been using lmorigin for the original regression, but it doesn't appear that stepAIC recognizes it. I keep receiving an error message - "Error in na.fail.default(list(Phenology =

Re: [R] Model selection and model efficiency - Search for opinions

2011-08-24 Thread Bert Gunter
1. As this is not really appropriate for R, I suggest replies be private. 2. You might try posting on various statistical forums, e.g. on http://stats.stackexchange.com/ -- Cheers, Bert On Wed, Aug 24, 2011 at 12:15 PM, Arnaud Mosnier wrote: > Hi, > > In order to find the best models I use AIC

[R] Model selection and model efficiency - Search for opinions

2011-08-24 Thread Arnaud Mosnier
Hi, In order to find the best models I use AIC, more specifically I calculate Akaike weights then Evidence Ratio (ER) and consider that models with a ER < 2 are equally likely. But the same problem remain each time I do that. I selected the best models from a set of them, but I don't know if those

[R] Model selection

2011-08-03 Thread xy
Dear List, I have some difficulties to work with the function lmer from lme4. My responses are binary form and i want to use forward selection to my 12 covariates but i dont know how can I choose them based on deviance. Can someone pls give me a example so i can apply. For example my covariates

Re: [R] model selection, lme

2010-04-29 Thread kMan
ay Cichini [mailto:kay.cich...@uibk.ac.at] Sent: Wednesday, April 28, 2010 3:56 AM To: r-help@r-project.org Subject: [R] model selection, lme hello, i'd like to evaluate the 2 factors (f1 with 4, f2 with 2 levels) and its interactions in my model for writing up a summary table with likelihood-

[R] model selection, lme

2010-04-28 Thread Kay Cichini
hello, i'd like to evaluate the 2 factors (f1 with 4, f2 with 2 levels) and its interactions in my model for writing up a summary table with likelihood-ratio tests for publication purpose. now i'm unsure about which terms of my model may be dropped from the full model and which not. mfull<-l

Re: [R] model selection using ANOVA

2009-03-31 Thread Stephan Kolassa
Hi Alina, your approach sounds problematic - you can always get a smaller RSS if you add terms to your model, so your approach will always go for larger models, and you will end up overfitting. Consider information criteria, e.g., AIC or BIC, which "penalize" larger models. References for AIC

[R] model selection using ANOVA

2009-03-31 Thread Alina Sheyman
I've created a number of models using lm and now want to pick one with the smallest standard error or the smallest RSS, I can get a list of RSS using anova function, but is the any way I can then select one with the smallest RSS from the list? [[alternative HTML version deleted]]

[R] model selection method - step() or bic.glm()

2008-01-20 Thread Des Callaghan
Dear R-helpers, I'm considering two methods of selecting a poisson regression model within R: 1. Using the step() function (stats package) to find the best model by a stepwise algorithm and AIC 2. Using the bic.glm() function (BMA package) to find the best model by Bayesian Model Averaging and BI