Displaying 4 results from an estimated 4 matches for "othervari".
Did you mean:
otherval
2009 Jul 09
1
Strange t-test error: "grouping factor must have exactly 2 levels" while it does...
Hi,
Could anyone tell me what is wrong:
> length(unique(mydata$myvariable))
[1] 2
>
and in t-test:
(...)
Error in t.test.formula(othervariable ~ myvariable, mydata) :
grouping factor must have exactly 2 levels
>
I re-checked the code and still don't get what is wrong.
Moreover, there is some strange behavior:
/1 It seems that the error is vulnerable to NA'a, because it affects
some variables in data set with NA's a...
2007 Feb 06
1
heatmap from xyz data
Hi,
I've got some data in a data frame arranged like this:
x y z othervariables ....
0.1 0.2 1.7 0.01 ....
0.2 0.2 1.3 0.23 ....
0.2 0.3 1.1 0.43 ....
etc
I'd like to plot a heatmap of this data, with x and y as the (x,y) co-
ords and z defining the colour at each point.
I'm having difficulty finding the correct functions to use. Can
anyone make any recommen...
2007 Nov 30
1
No quote
...s", I use sth containing code[1]. It may sounds unnecessary in this
special case. But as I have some
interaction work to do with an exsiting project and this is what I want to
achieve.
I try to use the noquote function on "code", and it returns sth as
following:
[1] Prices Rates OtherVariables...
Then I call noquote(code)[1], it gets
[1] tblPrices
How can I get rid of the [1]? Could anyone give me some advice? many thanks
--
View this message in context: http://www.nabble.com/No-quote-tf4904509.html#a14046941
Sent from the R help mailing list archive at Nabble.com.
2007 Dec 04
1
How can I use the rho value in the cor.test() summary?
I want to give the "rho" value below to another variable.How ?
> Spearman's rank correlation rho
>
>
>
> data: a[, 3] and a[, 2]
>
> S = 22, p-value = 0.001174
>
> alternative hypothesis: true rho is not equal to 0
>
> sample estimates:
>
> rho
>
> 0.8666667
--
View this message in context: