Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

11 results for “from:Juan Pablo Lewinger”

cdf of multivariate normal
Juan Pablo Lewinger · Feb 6, 2006 · r-help

I was wondering if anybody has written R code to compute the cdf of a multivariate (or at least a bivariate) normal distribution with given covariance structure.

Speeding up resampling of rows from a large matrix
Juan Pablo Lewinger · May 25, 2007 · r-help

That's beautiful. For the full 120 x 65,000 matrix your approach took 85 seconds. A truly remarkable improvement over my 80 minutes! Thank you!

CDF of a Multivariate Normal
Juan Pablo Lewinger · May 10, 2007 · r-help

> In my simulations, I have to use the values of the cumulative distribution function of a multivariate > normal with known mean vector and dispersion matrix. Please, can you tell me if there is a package in R to do that...

Random sample from log-normal distribution
Juan Pablo Lewinger · Nov 18, 2006 · r-help

> Dear all R users, > > Please forgive me if my question is too trivial. > Suppose I have two variables, (x,y) which is > log-normally distributed with expected value (mu1, > mu2) and some variance-covariance matrix. Now I want > to draw...

Change font size of Console Output
Juan Pablo Lewinger · Oct 19, 2010 · r-sig-mac

This is has been asked before, yet I can't figure out how to: 1) Change (for the current session and/or permanently) the font size of the console output. 2) Permanently change the font size of the console input...

Retrieving value computed in inner function call
Juan Pablo Lewinger · Sep 12, 2006 · r-help

Dear R users, Consider the following example function: f = function(a,b) { g = function(x) a*x + b h = function(x) g(x)^2 + x^2 opt = optimize(h,lower = -1, upper = 1) x.min = opt$minimum h.xmin = opt...

Efficiently reading random lines form a large file
Juan Pablo Lewinger · May 15, 2007 · r-help

I need to read two different random lines at a time from a large ASCII file (120 x 296976) containing space delimited 0-1 entries. The following code does the job and it's reasonable fast for my needs: lineNumber...

Controlling text and strip arrangement in xyplot
Juan Pablo Lewinger · Jun 19, 2007 · r-help

I've searched the archives and read the xyplot help but can't figure out the 2 lattice questions below? Consider: library(lattice) DF <- data.frame(x=rnorm(20), y=rnorm(20), g1=rep(letters[1:2], 10), g2=rep...

numeric variables converted to character when recoding missing values
Juan Pablo Lewinger · Jun 23, 2006 · r-help

Dear R helpers, I have a data frame where missing values for numeric variables are coded as 999. I want to recode those as NAs. The following only partially succeeds because numeric variables are converted to character in the process...

Speeding up resampling of rows from a large matrix
Juan Pablo Lewinger · May 24, 2007 · r-help

I'm trying to: Resample with replacement pairs of distinct rows from a 120 x 65,000 matrix H of 0's and 1's. For each resampled pair sum the resulting 2 x 65,000 matrix by column: 0...

numeric variables converted to character when recoding missingvalues
Juan Pablo Lewinger · Jun 23, 2006 · r-help

Thanks Bert, that works of course and is much more straightforward than what I was trying. However, I'm still puzzled as to why x[x==99]<-NA works (i.e. it replaces the 999s with NAs and keeps the...

Can't find what you're looking for? Try searching with Google .