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

2011-04-27 Thread Alison Callahan
quality of PCR/PLSR models, as well as for selecting the optimal number of components to use for predicting using a given model to avoid over fitting. I will also have a look at the RMS package. > > On Tue, Apr 26, 2011 at 11:26 AM, Alison Callahan > wrote: > > Hello again all, &

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

2011-04-26 Thread Alison Callahan
has this behaviour? And how to avoid 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 wrote: > Hello all, > > I have generated a principal components regression model using

[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() fu

Re: [R] simulating a VARXls model using dse

2011-04-04 Thread Alison Callahan
ase 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

[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 mat

[R] adding a named column to a Matrix

2010-10-13 Thread Alison Callahan
med literally "kog_id" 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, Aliso

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 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 >> wrote: >>> >>> On Oct 8, 2010, at 12:46 PM, Alison

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 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 err

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

2010-10-08 Thread Alison Callahan
me island_size "numeric" "numeric" "numeric" How do I need to change 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] using a package function inside another function

2010-10-07 Thread Alison Callahan
the micEcon package), it does 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 Departme