[R] Generating uniformly distributed correlated data.

2011-02-21 Thread Larry Hotchkiss
hanging 0.5 to r and 1-r, respectively in the assigment -- y <- (uni<0.5)*x+(uni>0.5)*sort(x) It is worth reflecting about whether this algorithm reflects the real-world process you wish to simulate. Larry Hotchkiss On 2/21/2011 6:00 AM, r-help-requ...@r-project.org wrote:

Re: [R] Read SPSS v 18 .sav file

2010-06-18 Thread Larry Hotchkiss
Thanks. This is good to know. -- Larry Original message >Date: Fri, 18 Jun 2010 11:36:40 -0400 >From: David Winsemius >Subject: Re: [R] Read SPSS v 18 .sav file >To: David Winsemius >Cc: Larry Hotchkiss , r-help@r-project.org > > >On Jun 18, 2010, at 1

[R] Read SPSS v 18 .sav file

2010-06-18 Thread Larry Hotchkiss
sav: Unrecognized record type 7, subtype 18 encountered in system file > However, read.spss works for .sav files created in older versions of spss. I did just reinstall foreign to be sure I have the latest version. Does anyone know of an update that w

[R] Two == expressions in bquote

2010-01-25 Thread Larry Hotchkiss
u^2))) for the x position on the 2nd text function, the position of the additional text is not predictable. Thanks, Larry Hotchkiss __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] To add text in a matrix

2010-01-15 Thread Larry Hotchkiss
LE OF a 3x3 MATRIX A B C A 1 2 3 B 4 5 6 C 7 8 9 Larry Hotchkiss - Original Post - Message: 7 Date: Thu, 14 Jan 2010 11:04:27 +0100 From: To: r-help@r-project.org Subject: [R] To add text in a matrix Message-ID: Content-Ty

[R] Exponential regression

2010-01-11 Thread Larry Hotchkiss
log-linear regression, and var(u) is the error variance around the fitted line of the log-linear regression. 3. If your model contains an intercept term -- y = a + c*exp(b*x) You need nonlinear least-squares or maximum likelihood to fit it. Larry Hotchkiss

Re: [R] solving cubic/quartic equations non-iteratively -- comparisons

2010-01-08 Thread Larry Hotchkiss
. -36 0.666807156100 0. 8 # ----- # Larry Hotchkiss -- Message: 7 Date: Wed, 6 Jan 2010 13:03:14 +0100 Fr

Re: [R] Error: cannot allocate vector of size...

2009-11-11 Thread Larry Hotchkiss
<- as.data.frame(Xstr.dat[,2:6], stringsAsFactors=FALSE) head(Xstr.dat) # Run a crosstab attach(Xstr.dat) table(V1, V2) Probably you do not need the option "stringsAsFactors=FALSE". Without it, the strings are converted to factors. Probably th