search for: dffits

Displaying 17 results from an estimated 17 matches for "dffits".

2008 Oct 19
2
definition of "dffits"
R-users E-mail: r-help@r-project.org Hi! R-users. I am just wondering what the definition of "dffits" in R language is. Let me show you an simple example. function() { library(MASS) xx <- c(1,2,3,4,5) yy <- c(1,3,4,2,4) data1 <- data.frame(x=xx, y=yy) lm.out <- lm(y~., data=data1, x=T) lev1 <- lm.influence(lm.out)$hat sig1 <- lm.influence(lm.out)$sigma res...
2008 Aug 29
1
lm() and dffits
...2681 81 2.176091259 1.414973348 81 2.176091259 1.447158031 81 2.181843588 1.414973348 81 2.181843588 1.447158031 81 2.184691431 1.462397998 81 2.187520721 1.447158031 81 2.187520721 1.477121255 81 2.187520721 1.505149978 ... [truncated] I'm trying to: 1) fit a simple lm(LW~LL) 2) calculate the dffits for those data points 3) remove those data points that are 2*sqrt(p/n) (where p=the number of parameters and n=number of data points; p=3 in a linear model, correct? Intercept, slope, and error term?) 4) rerun the model MINUS those data points 5) compare the two lm() Now, each of these steps I...
2006 Aug 31
1
NaN when using dffits, stemming from lm.influence call
Hi all I'm getting a NaN returned on using dffits, as explained below. To me, there seems no obvious (or non-obvious reason for that matter) reason why a NaN appears. Before I start digging further, can anyone see why dffits might be failing? Is there a problem with the data? Consider: # Load data dep <- read.table("http://www.sc...
2010 Feb 21
1
tests for measures of influence in regression
influence.measures gives several measures of influence for each observation (Cook's Distance, etc) and actually flags observations that it determines are influential by any of the measures. Looks good! But how does it discriminate between the influential and non- influential observations by each of the measures? Like does it do a Bonferroni-corrected t on the residuals identified by
2005 Jun 27
1
delta-beta's
...w to look particularly for any points of high influence. In order to do this I need to extract values for delta-beta. The function dfbeta gives a value for change in each coefficient but I am looking for a composite value that gives an overall measure of change to the coefficients. It may be that dffits is this function but I cannot gather what this is or what it is calculated from? If anyone has any advice re plotting H&L logistic regression diagnostics in R that would be greatly appreciated. Also, can any of these functions be applied to glmmPQL mixed models? Thanks very much Jo Halliday
2003 Nov 23
3
make check reg-tests-3
Should I submit this as a bug report? --- reg-tests-3.Rout.save Thu Jul 3 09:55:40 2003 +++ reg-tests-3.Rout Sun Nov 23 13:10:57 2003 @@ -1,17 +1,18 @@ -R : Copyright 2003, The R Development Core Team -Version 1.8.0 Under development (unstable) (2003-07-03) +R : Copyright 2003, The R Foundation for Statistical Computing +Version 1.8.1 (2003-11-21), ISBN 3-900051-00-3 R is free software and
2013 Dec 02
1
pamer.fnc y la nueva versión de R
...nicaros que había un fallo en esta función. Como os prometí os comento la respuesta por si alguno está interesado en utilizar el paquete LMERconvenientsfucntions Dear Javier, The package has been updated and should work for you fine now. Note that function mcp.fnc does not return the fourth plot (dffits) anymore. We still have to figure out a way to compute the dffits for the new merMod objects. Also note that mcposthoc.fnc doesn't work with pvals.fnc / MCMC anymore. Please see Note in help page. Finally, the package gained function plotLMER.fnc from archived package languageR. It's the...
2012 Jan 29
0
Using influence plots and obtaining id numbers
I am a novice R user, and I am having difficulty understanding R's influence plots. I am trying to remove outliers from a particular variable, "sib." I am able to generate influence plots and further outlier information such as below (which is a shortened example). For my analyses, I end up excluding the points R refers to, 7, 18, 26, and 105. However, my question is, how can I
2012 Feb 15
1
influence.measures()
Hi dear all, I'm wondering about the question that; Does the influence.measures(model) for linear models valid for general linear models such as logistic regression models? That is; If I fit the model like model <- glm( y~X1+X2, family=binomial) Then, if i apply the function "influence.measures(model), i will get the result of influence measures. These result are valid for
2017 Apr 04
0
Some "lm" methods give wrong results when applied to "mlm" objects
...fluence function, and it seems that it returns elements sigma and coefficients that are only based on the first variable (first column of the residual matrix wt.res) and give wrong results for other variables. This will influence functions dfbeta.lm (coefficients), dfbetas.lm (coefficients, sigma), dffits (sigma), rstudent.lm (sigma) and covratio (sigma). lm.influence finds these elements in compiled code and this is harder to fix. MASS (the book & the package) avoid using compiled code in their (univariate) studentized residuals, and instead use a clever short-cut. In addition to these, there...
2009 Aug 03
0
Deducer 0.1 : An intuitive cross-platform data analysis GUI
...with (or without) adjustments for multiple testing. i. Custom linear hypothesis tests j. Effect mean summaries (with confidence intervals), and plots k. Exports: Residuals, Standardized residuals, Studentized residuals, Predicted Values (linear and link), Cooks distance, DFBETA, DFFITS, hat values, and Cov Ratio l. Observation weights and subseting 9. Logistic Regression a. All GLM features b. ROC Plot 10. Linear Model a. All GLM features b. Heteroskedastic robust tests _______________________________________________ R-packages mailing list R-packages at r-proj...
2009 Aug 03
0
Deducer 0.1 : An intuitive cross-platform data analysis GUI
...with (or without) adjustments for multiple testing. i. Custom linear hypothesis tests j. Effect mean summaries (with confidence intervals), and plots k. Exports: Residuals, Standardized residuals, Studentized residuals, Predicted Values (linear and link), Cooks distance, DFBETA, DFFITS, hat values, and Cov Ratio l. Observation weights and subseting 9. Logistic Regression a. All GLM features b. ROC Plot 10. Linear Model a. All GLM features b. Heteroskedastic robust tests _______________________________________________ R-packages mailing list R-packages at r-proj...
1999 Jun 23
1
Influence.measures
I am using rw0641 with Windows 98. To list just the influential repetitiones that result from "influence.measures", I am using the input result <- lm(y~x) and the code from the example in the help for "influence.measures" INFLM <- function(result){ inflm <- influence.measures(result) which(apply(inflm$is.inf,1,any)) } It works fine up to now with the
2010 Oct 06
2
A problem --thank you
dear:teacher i have a problem which about the polr()(package "MASS"), if the response must have 3 or more levels? and how to fit the polr() to 2 levels? thank you. turly yours [[alternative HTML version deleted]]
2000 Feb 07
2
R-0.99.0 is released
...w happens column by column as documented, so character or logical matrices generate factor columns. o Formulae containing interactions with the response were handled incorrectly by model.matrix, giving wrong answers or crashes. o anova(lm(.)) with 0 weights now works. o plot.lm(), dffits(), covratio() now do the right thing for weighted lm regression. o formatC(as.integer(c(1,0,NA))) now works. PR#394, thanks to Jens O.-A. o format.char(.) is much faster for long vector argument [Jens O.-A.] o \enumerate now enumerates in text conversion of .Rd files. o glm() n...
2000 Feb 07
2
R-0.99.0 is released
...w happens column by column as documented, so character or logical matrices generate factor columns. o Formulae containing interactions with the response were handled incorrectly by model.matrix, giving wrong answers or crashes. o anova(lm(.)) with 0 weights now works. o plot.lm(), dffits(), covratio() now do the right thing for weighted lm regression. o formatC(as.integer(c(1,0,NA))) now works. PR#394, thanks to Jens O.-A. o format.char(.) is much faster for long vector argument [Jens O.-A.] o \enumerate now enumerates in text conversion of .Rd files. o glm() n...
2013 Oct 18
2
pamer.fnc y la nueva versión de R
Javier, Creo que aquí aplica la ley de Linus que dice: "Dado un número suficientemente elevado de ojos, todos los errores se convierten en obvios". La persona que revisa y encuentra un error no necesariamente tiene que ser la misma que la que lo escribe. Una motivación muy importante al compartir un código es la de recibir los beneficios del control de calidad por parte de tus pares.