Re: [R] Predicting with a principal component regression model: non-conformable arguments error

2011-04-27 Thread Alison Callahan
26, 2011 at 11:26 AM, Alison Callahan alison.calla...@gmail.com wrote: Hello again all, I am responding to my own earlier post about a non-conformable arguments error with the predict() function of the pls package ( http://cran.r-project.org/web/packages/pls/) in R 2.13.0 (running

Re: [R] Predicting with a principal component regression model: non-conformable arguments error

2011-04-26 Thread Alison Callahan
it if possible in a way that doesn't involve users having to insert dummy values in new data? Thanks, Alison On Mon, Apr 18, 2011 at 6:18 PM, Alison Callahan alison.calla...@gmail.comwrote: Hello all, I have generated a principal components regression model using the pcr() function from

[R] Predicting with a principal component regression model: non-conformable arguments error

2011-04-18 Thread Alison Callahan
Hello all, I have generated a principal components regression model using the pcr() function from the PLS package (R version 2.12.0). I am getting a non-conformable arguments error when I try to use the predict() function on new data, but only when I try to read in the new data from a separate

[R] saving a regression model to a file

2011-04-14 Thread Alison Callahan
Hello all, First off, I am using R version 2.13.0 in Ubuntu. I have read previous posts in the R mailing list on saving models for later use, and the responses indicate using the R save() function to save a model and then using load() to load it is one way to go. However, when I use the save()

[R] simulating a VARXls model using dse

2011-04-04 Thread Alison Callahan
Hello, Using the dse package I have estimated a VAR model using estVARXls(). I can perform forecasts using forecast() with no problems, but when I try to use simulate() with the same model, I get the following error: Error in diag(Cov, p) : 'nrow' or 'ncol' cannot be specified when 'x' is a

Re: [R] simulating a VARXls model using dse

2011-04-04 Thread Alison Callahan
you please send me a reproducible example, and R and dse version info. Thanks, Paul -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Alison Callahan Sent: April 4, 2011 10:56 AM To: r-help@r-project.org Subject: [R

[R] adding a named column to a Matrix

2010-10-13 Thread Alison Callahan
instead of KOG1234. How can I name a column by passing in a variable for the column name? I am performing this action inside of a for loop, so I can't necessarily know the position of the column in order to name it after it is created. Thanks, Alison Callahan --- PhD Candidate

[R] Error when using anova(lm())

2010-10-08 Thread Alison Callahan
the format of my data frame so that I do not get the above error? Thanks! Alison Callahan PhD candidate Department of Biology Carleton University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Error when using anova(lm())

2010-10-08 Thread Alison Callahan
See below. On Fri, Oct 8, 2010 at 1:01 PM, David Winsemius dwinsem...@comcast.net wrote: On Oct 8, 2010, at 12:46 PM, Alison Callahan wrote: Hello all, I am trying to perform an ANOVA on some data in a data frame, but when I try to use lm(), I get the following error: Error

Re: [R] Error when using anova(lm())

2010-10-08 Thread Alison Callahan
Hi again On Fri, Oct 8, 2010 at 1:13 PM, David Winsemius dwinsem...@comcast.net wrote: On Oct 8, 2010, at 1:09 PM, Alison Callahan wrote: See below. On Fri, Oct 8, 2010 at 1:01 PM, David Winsemius dwinsem...@comcast.net wrote: On Oct 8, 2010, at 12:46 PM, Alison Callahan wrote: Hello

[R] using a package function inside another function

2010-10-07 Thread Alison Callahan
not insert a row into the matrix I pass in. When I call the insertRow function exactly as above in the R console, it works with no problem. Can anyone tell me why this is, and how to fix this problem? Thank you! Alison Callahan PhD candidate Department of Biology Carleton University