Displaying 2 results from an estimated 2 matches for "wght".
Did you mean:
wget
2012 Feb 07
2
Weighted mad
...eighted MeanAbsolute Dev (MAD). I am having trouble passing the correct weights from each group level and cannot see the code behind aggregate. But maybe 'aggregate' is not the best way to do that.
> m1 <- aggregate(pool[,c("SMM")],by=list(time=pool$ym),weighted.mean,w=pool$wght)
Error in weighted.mean.default(X[[1L]], ...) :
'x' and 'w' must have the same length
Apparently the grouping does not work on the additional argument. I am using weighted mean here just to be explicit and avoid supplying a custom function gor weighted MAD, which is not difficul...
2003 Nov 23
3
make check reg-tests-3
...2482 3.599979 3.580547 3.600799 3.599768
73 74 75 76 77 78 79 80
@@ -432,44 +433,57 @@
Potentially influential observations of
lm(formula = 1000/MPG.city ~ Weight + Cylinders + Type + EngineSize + DriveTrain, data = Cars93) :
- dfb.1_ dfb.Wght dfb.Cyl4 dfb.Cyl5 dfb.Cyl6 dfb.Cyl8 dfb.Cyln dfb.TypL
-8 -0.16 0.00 -0.10 -0.07 -0.24 -0.44 0.01 0.12
-19 -0.03 0.09 -0.01 -0.03 0.00 -0.01 -0.03 0.08
-28 0.11 -0.15 0.04 0.02 0.02 0.02 0.04 0.07
-39 -0.19 0.05 0.34 0....