search for: daag

Displaying 20 results from an estimated 71 matches for "daag".

Did you mean: dag
2009 Oct 08
3
I can not install DAAG package . help
I use R on my Ubuntu 9.04 laptop, which was installed by "aptitude install" way Now i'm learning a book of R which needs "MASS" and "DAAG" installed. So i followed the instructions: >install.packages("MASS") >library("MASS") MASS works fine. But DAAG doesn't. Anyone who could help would be appreciated a lot ! Below are my error outpus : > install.packages("DAAG") Warning in install...
2009 Oct 08
3
I can not install DAAG package . help
I use R on my Ubuntu 9.04 laptop, which was installed by "aptitude install" way Now i'm learning a book of R which needs "MASS" and "DAAG" installed. So i followed the instructions: >install.packages("MASS") >library("MASS") MASS works fine. But DAAG doesn't. Anyone who could help would be appreciated a lot ! Below are my error outpus : > install.packages("DAAG") Warning in install...
2012 Feb 29
1
How can I avoid the warning messages when calling DAAG package?
Dear R users, I'm a newbie for R and want to ask some basic questions. So, after I open the R software, I typed library(DAAG). Then, I get massive warning messages as shown below. Why does it happen? Also, here are few specific questions regarding each message. 1) Loading required package: MASS -> Does this mean that the MASS package is not included in DAAG? 2) Attaching package: 'survival' ->Does th...
2012 Jul 09
1
Package DAAG
Hie I am trying to install Package DAAG this is the error I get > library(DAAG) Loading required package: randomForest Error: package 'randomForest' could not be loaded In addition: Warning message: In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : there is no package called 'randomForest...
2013 Jun 04
1
How to write a loop in R to select multiple regression model and validate it ?
...ith forward selection, the best model selected with backward selection and so on...). Afterwards I would like to perform internal cross validation of all 4 selected models and choose 1 out of 4 which has the lowest average mean squared error (MSE). I used to do it using the code below: library(DAAG) val.daag<-CVlm(df=training, m=1, form.lm=formula(Y ~ X1+X2+X3)) val.daag<-CVlm(df=training, m=1, form.lm=formula(Y ~ X1+X2+X4)) val.daag<-CVlm(df=training, m=1, form.lm=formula(Y ~ X3+X4+X5)) val.daag<-CVlm(df=training, m=1, form.lm=formula(Y ~ X4+X5+X7)) For the best selected model (...
2007 May 12
0
There might be something wrong with cv.lm(DAAG)
Hi, everyone When I was using cv.lm(DAAG) , I found there might be something wrong with it. The problem is that we can't use it to deal with a linear model with more than one predictor variable. But the usage documentation hasn't informed us about this. You can find it by excuting the following code: xx=matrix(rnorm(20*3),ncol=3...
2007 May 21
0
Is this a bug in cv.lm(DAAG) ?
Dear R-list, I'm not sure what I've found about a function in DAAG package is a bug. When I was using cv.lm(DAAG) , I found there might be something wrong with it. The problem is that we can't use it to deal with a linear model with more than one predictor variable. But the usage documentation hasn't informed us about this. The code illustrates my discov...
2012 Jan 24
1
Failure to get compactPDF to compact a pdf file
I am failing to get compactPDF to make any change to a pdf file that, a/c to the message from the CRAN upload site, can be very substantially compacted. Any ideas what may be wrong? I have also tried recreating the pdf file. I also tried R CMD build --resave-data --compact-vignettes DAAG The data files compact alright (but I get the 'significantly better compression' warning message that might suggest that this is not happening), but the pdf file appears to go into the package unmodified. <<<< > tools::compactPDF('/Users/johnm/packages/DAAG/inst/doc/...
2005 Feb 27
1
subsetting data set dimenion problem
(See DAAG book, p. 173, ex. 3) I'm a new user of R, and I'm following the DAAG text. I want to create a subset of the races2000 data frame, but get errors because of a mismatch of values in some columns: > library(DAAG) > attach(races2000) > hills2000 <- races2000[races2000$type ==...
2004 Nov 27
1
how to pause between plots running scripts?
I used pause() from library(DAAG) to pasue between plots. This works when I source a script, but seems don't work when I run (ctrl + R) the script in R. Did I do something wrong? Thanks.
2004 Nov 27
1
how to pause between plots running scripts?
I used pause() from library(DAAG) to pasue between plots. This works when I source a script, but seems don't work when I run (ctrl + R) the script in R. Did I do something wrong? Thanks.
2006 Sep 11
2
problems in installing packages with R version 2.4.0 alpha (2006-09-05 r39134)
...es\R\R-2.4.0alpha\library\mlbench' package 'tseries' successfully unpacked and MD5 sums checked Warning: unable to move temporary installation 'C:\Program Files\R\R-2.4.0alpha\library\file305e124 \tseries' to 'C:\Program Files\R\R-2.4.0alpha\library\tseries' package 'DAAG' successfully unpacked and MD5 sums checked Warning: unable to move temporary installation 'C:\Program Files\R\R- 2.4.0alpha\library\file491c440d\DAAG' to 'C:\Program Files\R\R-2.4.0alpha\library\DAAG' package 'acepack' successfully unpacked and MD5 sums checked Warning:...
2005 Feb 28
0
Re: R-help Digest, Vol 24, Issue 28
...her" "other" "relay" Your syntax (without the comma) does give a result, providing that the dimensions match (the condition must have the same number of elements as races2000 has columns), but it is probably not the result that you want! See further pp.320-321 of the DAAG book. John Maindonald email: john.maindonald at anu.edu.au phone : +61 2 (6125)3473 fax : +61 2(6125)5549 Centre for Bioinformation Science, Room 1194, John Dedman Mathematical Sciences Building (Building 27) Australian National University, Canberra ACT 0200. On 28 Feb 2005, at 10...
2006 Mar 25
1
Suggest patch for princomp.formula and prcomp.formula
...princomp.formula and prcomp.formula in a way that is not documented to work, but then the documentation just says: formula: a formula with no response variable. Thus, to avoid a lot of typing, it would be nice if one could use '.' and '-' in the formula, e.g. > library(DAAG) > res <- prcomp(~ . - case - site - Pop - sex, possum) Error in prcomp.formula(~. - case - site - Pop - sex, possum) : PCA applies only to numerical variables > res <- princomp(~ . - case - site - Pop - sex, possum) Error in princomp.formula(~. - case - site - Pop - sex, possum) :...
2008 Aug 30
1
Saving 3d objects vs. pausing in non-interactive (scripted) mode
...y Windows environment I've tried various suggestions from the archives without success: a. par(ask=TRUE) (requires creating dummy graphs to obtain a pause, since par3d does not support ask) b. readline(prompt = "Pause. Press <Enter> to continue...") c. pause() in the DAAG package d. scan(). e. locator() 3. Here is a test script (pause.txt) showing the above suggestions fail: require(DAAG) X <- seq(0,10) par(ask=TRUE) plot(X,X) pause() locator(type="p") browser() scan() readline(prompt = "Readline pause. Press <Enter> t...
2005 Aug 29
1
Different sings for correlations in OLS and TSA
...ar.pred # plot the function plot(x) # Give a printout print(m1) print("unexplained portion of variance:") print(m1.1) print("Mean:") print(m1$x.mean) par(mfrow=c(1,1)) } #now, the autocorrelations should be consistent with following processes: fun.tsa.mle(ts.mar) #following DAAG a p=2 AR fun.tsa.mle(ts.anr) #following DAAG a p=2 AR #I need to know, wether ts.anr can be explained with ts.mar, so #according to ar.mle: mod3<-arima(ts.anr,order=c(2,0,0),xreg=ts.mar,transform.pars=TRUE) fit3 <- gls(ts.anr ~ ts.mar,correlation = corARMA(value=c(mod3$coef[1],mod3$coef...
2005 Dec 15
2
Why is bubbles() creating empty png graphs?
...ersion...). R version: platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 2 minor 2.0 year 2005 month 10 day 06 svn rev 35749 language R Operating system: SuSE 10 Rainer ----------------- library(gstat) library(RMySQL) library(DAAG) m <- dbDriver("MySQL") con <- dbConnect(m, group = "renpatch_renosterbos") tbls <- dbListTables(con) runs <- 1:5 years <- seq(98, 0, -7) progress_end <- length(tbls) * length(runs) * length(years) progress <- 0 for (year in years) { fd <- paste(&quot...
2008 Jul 20
2
Conditionally Updating Lattice Plots
...lm <- function(x, y, fit = TRUE, resid = TRUE){ model <- lm(y ~ x) y.pred <- predict(model) # Compute residuals for plotting res.x <- as.vector(rbind(x, x, rep(NA,length(x)))) # NAs induce breaks in line res.y <- as.vector(rbind(y, y.pred, rep(NA,length(x)))) # after Fig 5.1 of DAAG (clever!) p <- xyplot(y ~ x, pch = 20, panel = function(...) { panel.xyplot(...) # not strictly necessary if I understand correctly }) plot(p, more = TRUE) if (fit) { plot(update(p, more = TRUE, panel = function(...){ panel.xyplot(...) panel.abline(...
2005 Dec 14
1
broken package?
...checked package 'leaps' successfully unpacked and MD5 sums checked package 'chron' successfully unpacked and MD5 sums checked package 'fCalendar' successfully unpacked and MD5 sums checked package 'strucchange' successfully unpacked and MD5 sums checked package 'DAAG' successfully unpacked and MD5 sums checked package 'quadprog' successfully unpacked and MD5 sums checked Error in sprintf(gettext("unable to move temp installation '%d' to '%s'"), : use format %s for character objects > I'm running R-2.1.0 Is...
2006 Aug 25
2
xyplot with different symbols and colors?
Dear List, I try to make a xyplot with different colors and symbols, I came this far: library(DAAG) xyplot(csoa~it|sex*agegp,data=tinting,groups=target,pch=list(1,2),auto.key=list(space = "right")) this produces a plot with different colors and symbols but unfortunately the legend does only follow the color scheme and not the different symbols. Any suggestions what to change? And h...