Re: [R] small sample techniques

2007-08-09 Thread Daniel Nordlund
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nair, Murlidharan T Sent: Thursday, August 09, 2007 12:02 PM To: Nordlund, Dan (DSHS/RDA); r-help@stat.math.ethz.ch Subject: Re: [R] small sample techniques n=300 30% taking A relief from pain

Re: [R] t-distribution

2007-08-01 Thread Daniel Nordlund
?pt is what you want. Hope this is helpful, Dan Daniel Nordlund Bothell, WA -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nair, Murlidharan T Sent: Wednesday, August 01, 2007 11:43 AM To: r-help@stat.math.ethz.ch Subject: [R] t-distribution

Re: [R] Matrix Multiplication, Floating-Point, etc.

2007-07-31 Thread Daniel Nordlund
version. On my WinXP system running R-2.5.1 binary from CRAN, I get what you expected: ev2-c(0.8,-0.6) ev1-c(0.6,0.8) ev1%*%ev2 [,1] [1,]0 There could be differences in OS release, service packs installed, cpu, etc. But the moral you draw is probably a reasonable one. Dan Daniel

Re: [R] random sampling with some limitive conditions?

2007-07-07 Thread Daniel Nordlund
} } # randomly swap rows for(i in 1:8) { if (runif(1) .5) { swaprow-sample(which(rowsums==rowsums[i]),1) temp-sites[swaprow,] sites[swaprow,]-sites[i,] sites[i,]-temp } } sites Hope this is helpful, Dan Daniel Nordlund Bothell, WA USA

[R] MatchIt package on Ubuntu 7.04 (Feisty Fawn)

2007-07-03 Thread Daniel Nordlund
the CRAN mirror at FHCRC in Seattle, WA, USA. Dan Daniel Nordlund Bothell, WA USA __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] MatchIt package on Ubuntu 7.04 (Feisty Fawn)

2007-07-03 Thread Daniel Nordlund
Dirk, Thanks for the assistance. -Original Message- From: Dirk Eddelbuettel [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 6:57 AM To: Daniel Nordlund Cc: r-help@stat.math.ethz.ch Subject: Re: [R] MatchIt package on Ubuntu 7.04 (Feisty Fawn) On 2 July 2007 at 23:47

Re: [R] Textpad help

2007-06-12 Thread Daniel Nordlund
I would be happy to give you detailed instructions on how to set up Textpad running R code in batch mode. Dan Daniel Nordlund Bothell, WA USA __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] random numbers selection - simple example

2007-06-06 Thread Daniel Nordlund
the following s-matrix(sample(c(0:42), 1*15, replace=TRUE), 1, 15) which will give you a 1 row matrix with 1 sample of size 15 per row. Hope this is helpful, Dan Daniel Nordlund Bothell, WA USA __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Equivalent of 'Retain' statement in R

2007-05-21 Thread Daniel Nordlund
successful using R if you don't try to force SAS solutions into it. If you could give an example of some R code that you think requires the equivalent of RETAIN, I am sure someone on the list will be able to help with an appropriate R solution. Dan Daniel Nordlund Bothell, WA USA

Re: [R] importing sas datasets

2007-04-23 Thread Daniel Nordlund
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 8:45 AM To: John Kane; Daniel Nordlund; r-help@stat.math.ethz.ch Subject: Re: [R] importing sas datasets Hi John and Daniel, Thanks for your suggestions, I updated line 127

Re: [R] importing sas datasets

2007-04-23 Thread Daniel Nordlund
] [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 8:45 AM To: John Kane; Daniel Nordlund; r-help@stat.math.ethz.ch Subject: Re: [R] importing sas datasets Hi John and Daniel, Thanks for your suggestions, I updated line 127 of the sas.get function but after submitting the following

Re: [R] importing sas datasets

2007-04-21 Thread Daniel Nordlund
-Original Message- From: John Kane [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 5:11 PM To: Daniel Nordlund; [EMAIL PROTECTED]; r-help@stat.math.ethz.ch Subject: Re: [R] importing sas datasets Hi Anna, I'm the sas.get problem man. I still have not gotten it to work

Re: [R] Random number generator in R compared

2007-04-20 Thread Daniel Nordlund
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of raymond chiruka Sent: Thursday, April 19, 2007 5:23 AM To: R-help@stat.math.ethz.ch Subject: Re: [R] Random number generator in R compared I am trying to generate survival data using R .Im trying to

Re: [R] importing sas datasets

2007-04-20 Thread Daniel Nordlund
Daniel Nordlund Bothell, WA __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Package RGtk2, rattle, libatk-1.0.0.dll Errors

2007-02-28 Thread Daniel Nordlund
that you subscribe to the Rattle mailing list. You might get better help there. I am willing to continue trying to help you either on or off list, but I am no expert, just a fellow traveler with you. Dan Daniel Nordlund Bothell, WA USA __ R-help

Re: [R] ordered matrix question

2007-02-27 Thread Daniel Nordlund
2.06833436410 Thanks in advance, Juan Pablo Juan, Look at ?order. Something like this should work your.df[order(your.df$cfp, decreasing=TRUE), ] Hope this is helpful, Dan Daniel Nordlund Bothell, WA USA __ R-help@stat.math.ethz.ch

Re: [R] Datamining-package-?

2007-02-27 Thread Daniel Nordlund
like to visualize the data into pattern and understand the patterns. snip Joshua, You might take a look at the package rattle on CRAN for initially looking at your data and doing some basic data mining. Hope this is helpful, Dan Daniel Nordlund Bothell, WA, USA

Re: [R] solving a structural equation model using sem or other package

2007-01-24 Thread Daniel Nordlund
To: Daniel Nordlund; r-help Subject: Re: [R] solving a structural equation model using sem or other package This is an extract from the sem help page, which deals with your situation: S covariance matrix among observed variables; may be input as a symmetric matrix, or as a lower- or upper

[R] solving a structural equation model using sem or other package

2007-01-23 Thread Daniel Nordlund
I am trying to work my way through the book Singer, JD and Willett, JB, Applied Longitudinal Data Analysis. Oxford University Press, 2003 using R. I have the SAS code and S-Plus code from the UCLA site (doesn't include chapter 8 or later problems). In chapter 8, there is a structural

Re: [R] read.fwf and header

2006-10-30 Thread Daniel Nordlund
=c(3, 4, 10, 3, 2, 2, 2, 2, 11, 19), header=TRUE, sep=',') Hope this is helpful, Dan Daniel Nordlund Bothell, WA USA -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregor Gorjanc Sent: Monday, October 30, 2006 10:52 AM To: r-help

[R] where should R be installed?

2006-10-08 Thread Daniel Nordlund
suggestions gratefully accepted. Dan Daniel Nordlund Bothell, WA __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

Re: [R] Permutations with replacement

2006-08-18 Thread Daniel Nordlund
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jesse Albert Canchola Sent: Friday, August 18, 2006 1:02 PM To: r-help Subject: [R] Permutations with replacement Is there a simple function or process that will create permutations with

Re: [R] BUILD command fails with large R source file

2006-07-28 Thread Daniel Nordlund
John, You need to supply a lot more information if you wish to receive any useful assistance. You have not told us your operating system, version of R, or the error message you received. You are convinced that the problem is too many lines of code, but I have seen many postings where people

Re: [R] looking for a more efficient R code.

2006-06-26 Thread Daniel Nordlund
efficient, that is for you to decide. But you might try something like: plot(x, colSums(t(x %*% t(b)) + a)) Dan Daniel Nordlund Bothell, WA __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Problem on Matrix multiplication

2006-06-15 Thread Daniel Nordlund
It looks like weight and s are data frames, not vectors/matrices as required (and as the error message tells you). Dan Daniel Nordlund Bothell, WA -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arun Kumar Saha Sent: Wednesday, June 14, 2006 11:10

Re: [R] is there a way to let R do smart matrix-vector operation?

2006-03-06 Thread Daniel Nordlund
smart division? I've tried hard on: A/as.vector(as.matrix(ddLen)) Error in A/as.vector(as.matrix(ddLen)) : non-numeric argument to binary operator If ddLen is truly a list, then you might try A/unlist(ddLen) Hope this helps, Dan Daniel Nordlund Bothell, WA

Re: [R] installation of R on Linux

2006-01-28 Thread Daniel Nordlund
-Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 11:49 PM To: Daniel Nordlund Cc: r-help@stat.math.ethz.ch Subject: Re: [R] installation of R on Linux On Fri, 27 Jan 2006, Daniel Nordlund wrote: R-users, I am new user

[R] installation of R on Linux

2006-01-27 Thread Daniel Nordlund
R-users, I am new user of Linux (have been using Win XP Pro) and wanted to install R. Since I am just beginning to learn Linux I was wondering, where in the directory structure do users of Linux usually install R? Most of the instructions I have read simply say to untar the tarball where you

Re: [R] sampling vectors

2005-10-04 Thread Daniel Nordlund
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ecatchpole Sent: Monday, October 03, 2005 11:57 PM To: Eric Pante Cc: r-help@stat.math.ethz.ch Subject: Re: [R] sampling vectors Eric, If you want samples of size 3 from 0:50, with sum==50, this

Re: [R] about pnorm

2005-08-29 Thread Daniel Nordlund
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?? Sent: Monday, August 29, 2005 8:33 PM To: r-help@stat.math.ethz.ch Subject: [R] about pnorm As to the functionpnorm,the default degree of freedom(df) is infinite. I wanna know how to set the df

Re: [R] need help

2005-08-12 Thread Daniel Nordlund
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weiwei Shi Sent: Friday, August 12, 2005 2:05 PM To: r-help Subject: [R] need help Hi, there: I think i need to re-phrase my question since last time I did not get any reply but i think the

RE: [R] NA erase your data trick

2005-05-17 Thread Daniel Nordlund
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anders Schwartz Corr Sent: Monday, May 16, 2005 10:38 PM To: r-help@stat.math.ethz.ch Subject: [R] NA erase your data trick Oops, I just erased all my data using this gizmo that I thought