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.

295 results for “from:Moshe Olshansky”

iid.test package/ncdf package
Moshe Olshansky · Dec 12, 2007 · r-help

What do you mean by IID tests? You certainly can create sequences of iid variables/vectors in R (see ?rnorn, ?runif, ?mvrnorm from package MASS, etc.). --- Shubha Vishwanath Karanth <shubhak at ambaresearch.com> wrote: > Hi R, > > > > I want to conduct...

Conversion - lowercase to Uppercase letters
Moshe Olshansky · Aug 19, 2008 · r-help

Use toupper or tolower (see ?toupper, ?tolower) --- On Wed, 20/8/08, suman Duvvuru <duvvuru.suman at gmail.com> wrote: > From: suman Duvvuru <duvvuru.suman at gmail.com> > Subject: [R] Conversion - lowercase to Uppercase letters > To: r-help at r...

extra .
Moshe Olshansky · Aug 20, 2009 · r-help

My guess is that 6. comes for 6.0 - something which comes from programming languages where 6 represents 6 as integer while 6. (or 6.0) represents 6 as floating point number. --- On Fri, 21/8/09, kfcnhl <zhengchenji18 at...

Declaring variables in R
Moshe Olshansky · Oct 18, 2007 · r-help

Please forgive me if my question is answered in Help FAQ no. 23481739... In language like C every variable must be declared before it can be used. In VBA, if a variable has not been declared it is assumed to...

simple averaging question?
Moshe Olshansky · Nov 1, 2007 · r-help

If x is your vector, one possibility is: y <- matrix(x,nrow=60) z <- apply(y,2,mean) --- Jeff Miller <jeffmiller at alphapoint05.net> wrote: > Hi all, > > > > Suppose I have a column vector of 600 measurements > taken in 1s intervals...

Confidence intervals - a statistical question, nothing to do with R
Moshe Olshansky · Nov 18, 2009 · r-help

Dear list, I have r towns, T1,...,Tr where town i has population Ni. For each town I randomly sampled Mi individuals and found that Ki of them have a certain property. So Pi = Ki/Mi is an unbiased estimate...

how to compute cross correlation
Moshe Olshansky · Sep 3, 2007 · r-help

The simlest answer is that X and Y are two vectors of length n then (un-normalized) cross correlation between X and Y is sum(i=1 to n) {X(i)-Xbar)*(Y(i)-Ybar)} where Xbar and Ybar are...

Random sequence of days?
Moshe Olshansky · Aug 19, 2008 · r-help

How about d[sample(length(d),10)] --- On Wed, 20/8/08, Lauri Nikkinen <lauri.nikkinen at iki.fi> wrote: > From: Lauri Nikkinen <lauri.nikkinen at iki.fi> > Subject: [R] Random sequence of days? > To: r-help at stat.math...

print() to file?
Moshe Olshansky · Jul 9, 2009 · r-help

One possibility is to use sink (see ?sink). --- On Thu, 9/7/09, Steve Jaffe <sjaffe at riskspan.com> wrote: > From: Steve Jaffe <sjaffe at riskspan.com> > Subject: [R] print() to file? > To: r-help at r-project.org > Received...

mean and variance of ratio
Moshe Olshansky · Feb 18, 2008 · r-help

Hi Irene, The result depends on the joint distribution of x1,x2,y1,y2. The mean (or the variance) not always exist (if, for example, all of them are independent and normally distributed). One possibility to estimate mean and variance...

Financial Basket Options
Moshe Olshansky · Jan 15, 2008 · r-sig-finance

Hi Michel, I wrote an R code implementing Longstaff-Schwartz algorithm for pricing American put Basket option (on the portfolio value). This code can be easily changed to value call option (I intend to allow for "any" payoff function in...

Cluster analysis using numeric and factor variables
Moshe Olshansky · Jun 10, 2008 · r-help

If you can define a distance between two vectors (where each one has some numerical and some categorical coordinates) then you can proceed with any clustering algorithm. One possibility to get such a distance is to use RandomForest which can...

rounding
Moshe Olshansky · Jul 10, 2008 · r-help

The problem is that neither 0.55 nor 2.55 are exact machine numbers (the computer uses binary representation), so it may happen that the machine representation of 0.55 is slightly less than 0.55 while the machine representation...

vectorize a list
Moshe Olshansky · Nov 7, 2007 · r-help

Stack does not work for me either, but unlist works, i.e. unlist(l) --- Frank Schmid <fschmid at princeton.edu> wrote: > Dear R user > > Suppose I have the following list: > > > f <- rnorm(2) > > s <- rnorm(3) > > l <- list(f,s...

spliting strings ...
Moshe Olshansky · Dec 13, 2007 · r-help

Hi Monica, Try sapply(as.list(str),function(x) unlist(strsplit(x," "))[1]) --- Monica Pisica <pisicandru at hotmail.com> wrote: > > Hi everyone, > > I have a vector of strings, each string made up by > different number of words. I want to...

Partial comparison in string vector
Moshe Olshansky · Aug 21, 2007 · r-help

Use grep("^e",x) if you are looking for the entries where e is the first character. --- Vladimir Eremeev <wl2776 at gmail.com> wrote: > > Hi! > > seq(along=x) %in% grep("e",x) > > > > Steve Powell-4 wrote: > > > > I have a vector...

accessing dimension names
Moshe Olshansky · Dec 18, 2007 · r-help

To access your dimension idx you could do either assign("a",paste("dimnames(y)$x",idx,sep="")) or eval(parse(text=paste("a<-dimnames(y)$x",idx,sep=""))) --- born.to.b.wyld at gmail.com wrote: > I have a matrix...

SQL like function?
Moshe Olshansky · Sep 6, 2007 · r-help

observation %in% ID --- Takatsugu Kobayashi <tkobayas at indiana.edu> wrote: > Hi RUsers, > > I am wonder if I can search observations whose IDs > matches any of the > values in another vector, such as in MySQL. While I > am learing MySQL for...

perl expression question
Moshe Olshansky · Sep 22, 2008 · r-help

Hi Mark, stock<-"/opt/limsrv/mark/research/equity/projects/testDL/stock_data/fhdb/US/BLC.NYSE" > gsub(".*/([^/]+)$", "\\1",stock) [1] "BLC.NYSE" --- On Tue, 23/9/08, markleeds at verizon.net <markleeds at verizon.net> wrote: > From: markleeds at verizon...

printing levels as tuples
Moshe Olshansky · Nov 22, 2007 · r-help

Not the most efficient way would be to use a loop.... If x is your rel object, you can do the following: for (i in 1:length(x$values)) { cat("(",x$values[i],",",x$lengths[i],") ") if (i %% 10 == 0...

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