search for: wlandres

Displaying 20 results from an estimated 120 matches for "wlandres".

Did you mean: wlandev
2011 Aug 23
4
Correlation discrepancy
Dear R list, I have one very elementary question regrading correlation between two variables. x = c(44,46,46,47,45,43,45,44) y = c(44,43,41,41,46,48,44,43) > cov(x, y) [1] -2.428571 However, if I try to calculate the covariance using the formula as covariance = sum((x-mean(x))*(y-mean(y)))/8       # no of of paired obs. = 8 or     covariance = sum(x*y)/8-(mean(x)*mean(y)) gives
2013 Apr 25
2
Decomposing a List
...second, i.e. from L (as above) I would want to extract: V1 = c("A1","A2","A3",...) V2 = c("B1","B2","B3",...) Suggestions? With thanks, Ted. ------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at wlandres.net> Date: 25-Apr-2013 Time: 11:16:46 This message was sent by XFMail
2012 Jul 30
6
Turning off continuation prompt?
...at the beginning of each continuation line? (The above is one of the smaller examples of this situation; sometimes I have wished to do this for commands extending over, say, 15-20 lines). With thanks, Ted. ------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at wlandres.net> Date: 30-Jul-2012 Time: 09:58:02 This message was sent by XFMail
2010 Dec 07
4
increase or decrease variable by 1
many languages have shorthands for that operation like: variable += 1 or ++variable is there something like that in R ? -- View this message in context: http://r.789695.n4.nabble.com/increase-or-decrease-variable-by-1-tp3076390p3076390.html Sent from the R help mailing list archive at Nabble.com.
2011 Oct 23
0
FW: Re: symmetric matrix multiplication
Just to avoid possible confusion, let me correct a typo (at step [2] in the example below). Apologies! -----FW: <XFMail.111023084327.ted.harding at wlandres.net>----- Date: Sun, 23 Oct 2011 08:43:27 +0100 (BST) Sender: r-help-bounces at r-project.org From: (Ted Harding) <ted.harding at wlandres.net> To: r-help at r-project.org Subject: Re: [R] symmetric matrix multiplication On 23-Oct-11 07:00:07, Daniel Nordlund wrote: >> -----Origina...
2013 Jan 09
0
[solved] t-test behavior given that the null hypothesis is true
Hi Ted, yes this was the problem. Thank you very much. best idaios On Wed, Jan 9, 2013 at 4:51 PM, Ted Harding <Ted.Harding@wlandres.net>wrote: > Ah! You have aqssigned a parameter "equal.var=TRUE", and "equal.var" > is not a listed paramater for t.test() -- see ?t.test : > > t.test(x, y = NULL, > alternative = c("two.sided", "less", "greater"), >...
2013 Mar 26
2
edit.data() read-only?
...en be stored after quitting edit.data(). Is there a possibility of a read-only option? Or some other function which could offer similar viewing capability without the risk of data change? With thanks, Ted. ------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at wlandres.net> Date: 26-Mar-2013 Time: 10:08:58 This message was sent by XFMail
2012 Feb 25
2
Finding name of variable supplied as function argument
...http://finzi.psych.upenn.edu/Rhelp10/2010-May/240162.html which uses a somewhat rebarbative parsing of the call stack. Is there a simpler way? Or should I just use the 4-argument method? With thanks, Ted. ------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at wlandres.net> Date: 25-Feb-2012 Time: 19:53:49 This message was sent by XFMail
2011 Nov 18
3
Permutations
Hi all, why factorial(150) shows the error out of range in 'gammafn'? I have to calculate the number of subset formed by 150 samples taking 10 at a time. How is this possible? best [[alternative HTML version deleted]]
2012 Oct 11
2
Help on probability distribution question
Dear All,   I have a questions I would like to ask about and wonder if you have any thoughts to make it work in R.   1. I work in the field of medicine where physiologic variables are often simulated, and they can not have negative values. Most often the assumption is made to simulate this parameters with a normal distribution but in the "log-domain" to avoid from negative values to be
2012 Jul 10
2
RGB components of plot() colours
...rom R where I have used these colours, it seems that for: "salmon": 0.9804 0.5020 0.4471 rgb "orange1": 1 0.6471 0 rgb However, this is a tedious way of finding out! With thanks, Ted. ------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at wlandres.net> Date: 10-Jul-2012 Time: 14:05:15 This message was sent by XFMail
2012 Apr 13
3
A little exercise in R!
...e R package that can solve this kind of problem already, without you having to think much, then its use is illegitimate! (I.e. will be deemed "regurgitation"). Over to you. With best wishes, Ted. ------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at wlandres.net> Date: 13-Apr-2012 Time: 22:33:43 This message was sent by XFMail
2012 Apr 05
2
"NA" vs. NA
Dear All, I assume this is an R-devel issue, apologies if I missed something obvious. I have a dataframe where the row names are country codes, based on ISO 3166, something like this: ------------ "v1" "v2" "UK" 1 2 "NA" 2 3 ------------ It happens that "NA" is the country code for "Namibia", and that creates problems on
2010 Nov 13
1
Efficient marginal sums?
...s=c(2,3)) Or, even more general, like: marg.apply(X,Y,Z,fun1=f,fun2=sum,margins=c(2,3)) (Such a question must have been asked before, but I haven't located it). With thanks, Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <ted.harding at wlandres.net> Fax-to-email: +44 (0)870 094 0861 Date: 13-Nov-10 Time: 15:49:22 ------------------------------ XFMail ------------------------------
2012 Sep 01
1
Vectorial analogue of all.equal()?
...(with optional "tol=" argument) would test for equality to within tolerance, and return a vector of TRUE/FALSE according to the values in X. Or, indeed, perhaps I am overlooking something. Ted. ------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at wlandres.net> Date: 01-Sep-2012 Time: 14:48:01 This message was sent by XFMail
2013 Apr 01
1
Console display "buffer size"
...way to change the size of the "buffer" so that one can scroll all the way back to the very first row of Chunk 1? (The size-change may perhaps have to be determined empirically). With thanks, Ted. ------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at wlandres.net> Date: 01-Apr-2013 Time: 21:37:17 This message was sent by XFMail
2012 Dec 18
3
Regression line does not show on scatterplot
Hello, I have done a scatterplot and now would like to add its regression line but it does not show. Below, the code I have used. lm3 <- lm(data$S_pH_KCl2.5_BCx~data$B_OleicoPF_BCx_per) plot(data$S_pH_KCl2.5_BCx, data$B_OleicoPF_BCx_per) abline(lm3) I have been able to do the complete operation using the software STATISTICA but it would be great to do it with R. If you require more details
2012 Apr 04
1
Shapiro-Wilk cpoefficients: 2 Qs
...l: sw <- .C(R_swilk, ... ) my modifiction of shapiro.test() doesn't find it? (No doubt there is some dumb oversight behind this, but I'd be grateful to be told what it is)! With thanks, Ted. ------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at wlandres.net> Date: 04-Apr-2012 Time: 23:06:32 This message was sent by XFMail
2011 Nov 13
1
To moderator
...e la Tour > Montr?al, Qu?bec H3T 1J4 > CANADA > > T?l.: (00-1) 514-343-6607 / Fax: (00-1) 514-343-5700 > lafaye at dms.umontreal.ca > http://www.biostatisticien.eu > -------------------------------------------------------------------- E-Mail: (Ted Harding) <ted.harding at wlandres.net> Fax-to-email: +44 (0)870 094 0861 Date: 13-Nov-11 Time: 17:23:07 ------------------------------ XFMail ------------------------------
2010 Oct 18
3
remove numbers from string of characters
Greetings I want to remove numbers from a string of characters that identify sites so that I can merge two data frames. For example, a site in one frame is called "001a Frozen Niagara Entrance" whereas the same site in the other data frame is called "Frozen Niagara Entrance". It seems to me the easiest thing to do would be to remove the numbers from the first data