Displaying 20 results from an estimated 1100 matches similar to: "Do I need to use dropterm()??"
2009 Jan 29
1
Inconsistency in F values from dropterm and anova
Hi,
I'm working on fitting a glm model to my data using Gamma error structure
and reciprocal link. I've been using dropterm (MASS) in the model
simplification process, but the F values from analysis of deviance tables
reported by dropterm and anova functions are different - sometimes
significantly so. However, the reported residual deviances, degrees of
freedom, etc. are not different.
2002 Oct 04
1
dropterm in a function
I'm trying to use 'dropterm' (from MASS) in a function along the lines
run <- function(dat){
fit <- (something)(Y ~ (something), data = dat)
lr <- dropterm(fit, test = "Chisq")
return(fit, lr)
}
but running 'run' I get (those scoping rules again...?)
Error in terms.formula(formula, special, data = data) :
Object "dat" not found
2002 Sep 12
1
dropterm, binomial.glm, F-test
Hi there -
I am using R1.5.1 on WinNT and the latest MASS (Venables and Ripley) library.
Running the following code:
>minimod<-glm(miniSF~gtbt*f.batch+log(mxjd),data=gtbt,family="binomial")
>summary(minimod,cor=F)
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 0.91561 0.32655 2.804 0.005049 **
gtbtgt 0.47171
2008 Feb 11
0
Testing for differecnes between groups, need help to find the right test in R. (Kes Knave)
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of r-help-request at r-project.org
Sent: Monday, February 11, 2008 12:00 PM
To: r-help at r-project.org
Subject: R-help Digest, Vol 60, Issue 11
Send R-help mailing list submissions to
r-help at r-project.org
To subscribe or unsubscribe via the World Wide Web, visit
2012 Feb 08
2
dropterm in MANOVA for MLM objects
Dear R fans,
I have got a difficult sounding problem.
For fitting a linear model using continuous response and then for re-fitting the model after excluding every single variable, the following functions can be used.
library(MASS)
model = lm(perf ~ syct + mmin + mmax + cach + chmin + chmax, data = cpus)
dropterm(model, test = "F")
But I am not sure whether any similar functions is
2002 Apr 28
2
dropterm() in MASS
To compare two different models, I've compared the result of using
dropterm() on both.
Single term deletions
Model:
growth ~ days + I(days^0.5)
Df Sum of Sq RSS AIC
<none> 2.8750 -0.2290
days 1 4.8594 7.7344 4.6984
I(days^0.5) 1 0.0234 2.8984 -2.1722
AND
Single term deletions
Model:
growth ~ days + I(days^2)
Df Sum
2017 Aug 23
0
MASS:::dropterm.glm() and MASS:::addterm.glm() should use ... for extractAIC()
Hi,
I have sent this message to this list the July, 7th. It was about a
problem in MASS package.
Until now there is no change in the devel version.
As the problem occurs in a package and not in the R-core, I don't know
if the message should have been sent here. Anyway, I have added a copy
to Pr Ripley.
I hope it could have been fixed.
Sincerely
Marc
Le 09/07/2017 ? 16:05, Marc Girondot via
2007 Jun 27
1
stepAIC on lm() where response is a matrix..
dear R users,
I have fit the lm() on a mtrix of responses.
i.e M1 = lm(cbind(R1,R2)~ X+Y+0). When i use
summary(M1), it shows details for R1 and R2
separately. Now i want to use stepAIC on these models.
But when i use stepAIC(M1) an error message comes
saying that dropterm.mlm is not implemented. What is
the way out to use stepAIC in such cases.
regards,
2011 Aug 15
1
update() ignores object
Hi all,
I'm extracting the name of the term in a regression model that
dropterm specifies as the least significant one, and I'm assigning
this name to an object. However, when I use update(), it ignores this
object. Is there a way I can make it not ignore it? A reproducible
example is below:
> lm(x1~1+y1*y2+y3+y4,data=anscombe)->my.lm
>
2012 Oct 25
5
trying ti use a function in aggregate
Hi -I am using R v 2.13.0. I am trying to use the aggregate function to
calculate the percent at length for each Trip_id and CommonName. Here is a
small subset of the data.
Trip_id Vessel CommonName Length Count
1 230 Sunlight Shad,American 19 1
2 230 Sunlight Shad,American 20 1
3 230 Sunlight Shad,American 21
2005 Oct 11
1
problems with levelplot and contourplot
Hello,
Using the following code i want to make a level or contourplot of some
data that I produced
library(grid);library(lattice);
mydata <- read.table("avgee.dat");
mymat <- as.matrix(mydata);
mymat <-t(mymat)
vals<-as.vector(mymat);
conc<-c(0.0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5);
a<- c(0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5,5.0,
7.5,10,
2010 Jun 23
1
mhplot error with test example: "ylim not found"
Hello all,
I am trying to make a genome association plot for p-values related to SNPs
and was fortunate to find that R contains a package that produces Manhattan
plots which is what's preferred for my current project. The function
mhtplot() is found in the 'gap' package which I installed in R 2.11.1 on
Windows. I thought I'd test out the function first with the examples they
2009 Jan 28
1
StepAIC with coxph
Hi,
i'm trying to apply StepAIC with coxph...but i have the same error:
stepAIC(fitBMT)
Start: AIC=327.77
Surv(TEMPO,morto==1) ˜ VOD + SESSO + ETA + ........
Error in dropterm.default(fit,scope$drop, scale=scale,trace=max(0, :
number of rows in use has changed: remove missing values?
anybody know this error??
Thanks.
Michele
[[alternative HTML version deleted]]
2008 Sep 30
2
weird behavior of drop1() for polr models (MASS)
I would like to do a SS type III analysis on a proportional odds logistic
regression model. I use drop1(), but dropterm() shows the same behaviour. It
works as expected for regular main effects models, however when the model
includes an interaction effect it seems to have problems with matching the
parameters to the predictor terms. An example:
library("MASS");
options(contrasts =
2011 Jun 20
1
Stepwise model comparisons for mlogit
I am trying to perform a backwards stepwise variable selection with an mlogit model. The usual functions, step(), drop1(), and dropterm() do not work for mlogit models.
Update() works but I am only able to use it manually, i.e. I have to type in each variable I wish to remove by hand on a separate line.
My goal is to write some code that will systematically remove a certain set of variables
2009 Feb 18
1
using stepAIC with negative binomial regression - error message help
Dear List,
I am having problems running stepAIC with a negative binomial regression model. I am working with data on manta ray abundance, using 20 predictor variables. Predictors include variables for location (site), time (year, cos and sin of calendar day, length of day, percent lunar illumination), oceanography (sea surface temp mean and std, sea surface height mean and std), weather (cos
2009 Mar 10
2
perform subgroup meta-analysis and create forest plot displaying subgroups
Hello,
I'm using the rmeta package to perform a meta analysis using summary statistics rather than raw data, and would like to analyze the effects in three different subgroups of my data. Furthermore, I'd like to plot this on one forest plot, with corresponding summary weighted averages of the effects displayed beneath each subgroup.
I am able to generate the subgroup analyses by simply
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
2002 Apr 01
0
something confusing about stepAIC
Folks, I'm using stepAIC(MASS) to do some automated, exploratory, model
selection for binomial and Poisson glm models in R 1.3. Because I wanted to
experiment with the small-sample correction AICc, I dug around in the code
for the functions
glm.fit
stepAIC
dropterm.glm
addterm.glm
extractAIC.glm
and came across something I just don't understand.
stepAIC() passes dropterm.glm() a
2010 Aug 09
9
where can I get up to date instantrails ?
Hi, can someone please tell me where can I find up-to-date instantrails
(with rails 2.38, ruby 1.8.7) ... ?
Thanks for any help
Dani
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To