I'm trying to classify some observations using lda and I'm getting a
strange error. I loaded the MASS package and created a model like so:
>train <- mod1[mod1$rand < 1.7,]
>classify <- mod1[mod1$rand >= 1.7,]
>lda_res <- lda(over_win ~ t1_scrd_a + t1_alwd_a, data=train, CV=TRUE)
That works, and
hello,
I'm trying to predict some values based on a linear regression model.
I've created the model using one dataframe, and have the prediction
values in a second data frame (call it newdata). There are 56 rows in
the dataframe used to create the model and 15 in newdata.
I ran predict(model1, ne
-- apologies if this is a dup - i got a bounce saying the message was
unprocessed.
Is there a straightforward way to get a table with percents in the
cells rather than counts? I've looked at table, ftable, xtabs, and
ctab, which did the conversion but returned the results in a single
row without l
Sorry - this must be obvious, but i haven't been able to find the
answer in the guides i've searched. The examples seem to assume you
always want to look at all the data.
I want to be able to filter data in a dataframe before analyzing it.
For example, I'd like to plot(a,b) but only include value
At the risk of being wacked for asking what should be obvious
I have a data frame with one categorical variable "CAT" and several
numeric variables. I want to be able to get simple statistics on the
numeric variables by level. For example, just as you can use table
(CAT) to get the counts,
to indicate which version is appropriate
for R 2.0.1.
BTW, I'm on win 2000, if that would make a difference.
On Mon, 14 Mar 2005 16:22:50 +0100, Uwe Ligges
<[EMAIL PROTECTED]> wrote:
> Larry White wrote:
>
> > Hi, Please excuse these questions if they're obvious. I'
Hi, Please excuse these questions if they're obvious. I'm new to R.
I need to access a Postgres db from R. I'm currently trying RODBC as
I spend part of my time on Windows and rdbi.pgsql seems not to support
windows at this time.
I unzipped the RODBC win binary download into my library directory