search for: maitra

Displaying 20 results from an estimated 49 matches for "maitra".

2001 Feb 23
4
hclust question
...ify my own distance matrix instead of asking R to compute the distance matrix for me. It is computationally easier for me this way. My question is: How can I get hclust to accept this? Thanks, Ranjan -- *************************************************************************** Ranjan Maitra, Department of Mathematics and Statistics, University of Maryland, Baltimore County, Baltimore, MD 21250, USA. *************************************************************************** \|/ satyamevajayate | tamasomaajyotirgamaya \|/ -*-...
2018 Mar 30
3
getting all circular arrangements without accounting for order
...ore efficient options possible. Best wishes, Ranjan On Thu, 29 Mar 2018 22:20:19 -0400 Boris Steipe <boris.steipe at utoronto.ca> wrote: > If one is equal to the reverse of another, keep only one of the pair. > > B. > > > > > On Mar 29, 2018, at 9:48 PM, Ranjan Maitra <maitra at email.com> wrote: > > > > Dear friends, > > > > I would like to get all possible arrangements of n objects listed 1:n on a circle. > > > > Now this is easy to do in R. Keep the last spot fixed at n and fill in the rest using permuations(n-1, n...
2018 Mar 30
3
getting all circular arrangements without accounting for order
Dear friends, I would like to get all possible arrangements of n objects listed 1:n on a circle. Now this is easy to do in R. Keep the last spot fixed at n and fill in the rest using permuations(n-1, n-1) from the gtools package. However, what if clockwise or counterclockwise arrangements are the same? I know that half of the above (n - 1)! arrangements are redundant. Is there an easy way to
2011 Mar 20
3
manova question
Dear friends, Sorry for this somewhat generically titled posting but I had a question with using contrasts in a manova context. So here is my question: Suppose I am interested in doing inference on \beta in the case of the model given by: Y = X %*% \beta + e where Y is a n x p matrix of observations, X is a n x m design matrix, \beta is m x p matrix of parameters, and e is a
2018 Mar 30
0
getting all circular arrangements without accounting for order
...) , ix[ i, 2 ] ) } ) cbind( do.call( rbind, x ), n ) } ####### For more speed, perhaps use Rcpp with [1]? [1] http://howardhinnant.github.io/combinations.html On Thu, 29 Mar 2018, Ranjan Maitra wrote: > Thanks! > > Yes, however, this seems a bit wasteful. Just wondering if there are > other, more efficient options possible. > > Best wishes, > Ranjan > > > On Thu, 29 Mar 2018 22:20:19 -0400 Boris Steipe <boris.steipe at utoronto.ca> wrote: > >&gt...
2018 Jan 18
8
reading lisp file in R
Dear friends, Is there a way to read data files written in lisp into R? Here is the file: https://archive.ics.uci.edu/ml/machine-learning-databases/university/university.data I would like to read it into R. Any suggestions? Thanks very much in advance for pointers on this and best wishes, Ranjan -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please
2018 Jan 18
1
reading lisp file in R
...I don't know Lisp so I do not actually know what the lines towards the bottom of the file mean.( Many thanks for your response! Best wishes, Ranjan On Wed, 17 Jan 2018 20:59:48 -0800 David Winsemius <dwinsemius at comcast.net> wrote: > > > On Jan 17, 2018, at 8:22 PM, Ranjan Maitra <maitra at email.com> wrote: > > > > Dear friends, > > > > Is there a way to read data files written in lisp into R? > > > > Here is the file: https://archive.ics.uci.edu/ml/machine-learning-databases/university/university.data > > > > I wo...
2018 Mar 30
2
getting all circular arrangements without accounting for order
...x[ i, 2 ] > ) > } > ) > cbind( do.call( rbind, x ), n ) > } > ####### > > For more speed, perhaps use Rcpp with [1]? > > [1] http://howardhinnant.github.io/combinations.html > > On Thu, 29 Mar 2018, Ranjan Maitra wrote: > > > Thanks! > > > > Yes, however, this seems a bit wasteful. Just wondering if there are > > other, more efficient options possible. > > > > Best wishes, > > Ranjan > > > > > > On Thu, 29 Mar 2018 22:20:19 -0400 Boris Steipe...
2012 Mar 19
1
car/MANOVA question
Dear colleagues, I had a question wrt the car package. How do I evaluate whether a simpler multivariate regression model is adequate? For instance, I do the following: ami <- read.table(file = "http://www.public.iastate.edu/~maitra/stat501/datasets/amitriptyline.dat", col.names=c("TCAD", "drug", "gender", "antidepressant","PR", "dBP", "QRS")) ami$gender <- as.factor(ami$gender) ami$TCAD <- ami$TCAD/1000 ami$drug <- ami$drug/1000 library(car...
2007 May 18
2
displaying intensity through opacity on an image
...mage. On this image, for some pixels, which I know, I want to display their activity based on a third measure. One way to do that would be to color these differently, and use an opacity measure to display the third measure. An example of what I am trying to do is at: http://www.public.iastate.edu/~maitra/papers/mrm02.pdf page 26, for instance. There are two different kinds of voxels, given by greens and red. At the low end, there is transparency on the red scale and at the upper end there is opacity in the red and the green. A simpler example involving only one kind of voxels is on page 24 of th...
2018 Jan 18
0
reading lisp file in R
> On Jan 17, 2018, at 8:22 PM, Ranjan Maitra <maitra at email.com> wrote: > > Dear friends, > > Is there a way to read data files written in lisp into R? > > Here is the file: https://archive.ics.uci.edu/ml/machine-learning-databases/university/university.data > > I would like to read it into R. Any suggesti...
2018 Mar 30
0
getting all circular arrangements without accounting for order
If one is equal to the reverse of another, keep only one of the pair. B. > On Mar 29, 2018, at 9:48 PM, Ranjan Maitra <maitra at email.com> wrote: > > Dear friends, > > I would like to get all possible arrangements of n objects listed 1:n on a circle. > > Now this is easy to do in R. Keep the last spot fixed at n and fill in the rest using permuations(n-1, n-1) from the gtools package. &...
2018 Mar 30
0
getting all circular arrangements without accounting for order
...n seq.int( nrow( ix ) ) ) { result[ ( i - 1L ) * jxrows + jxoffsets, k ] <- matrix( v[ -ix[ i, ] ][ jx ], nrow = jxrows ) } result[ , 1L ] <- rep( ix[ , 1L ], each = jxrows ) result[ , n1 ] <- rep( ix[ , 2L ], each = jxrows ) result } On Fri, 30 Mar 2018, Ranjan Maitra wrote: > Jeff, > > I wanted to let you know that your function is faster than generating > the directional circular permutations and weeding. > > Here is the time for n = 10. I compared with just doing the > permutations, there is no point in proceeding further with the weed...
2018 Jan 18
0
reading lisp file in R
...I would use awk (standard unix tool), creating an awk script to process the file into a new file with one line for each record, each line with 18 fields, say comma-separated. The csv file can then be easily read into R via the function read.csv. HTH, Eric On Thu, Jan 18, 2018 at 6:22 AM, Ranjan Maitra <maitra at email.com> wrote: > Dear friends, > > Is there a way to read data files written in lisp into R? > > Here is the file: https://archive.ics.uci.edu/ > ml/machine-learning-databases/university/university.data > > I would like to read it into R. Any suggestions...
2017 Oct 09
2
example of geom_contour() with function argument
...ses a function? The help does not have an example of a function, and also I did not find anything from online searches. TIA, BFD ----------------------------------------------------------------------------------------------- How about geom_contour()? Am So., 8. Okt. 2017, 20:52 schrieb Ranjan Maitra <maitra at email.com>: > Hi, > > I am no expert on ggplot2 and I do not know the answer to your question. I > looked around a bit but could not find an answer right away. But one > possibility could be, if a direct approach is not possible, to draw > ellipses corresponding...
2018 Jan 18
0
reading lisp file in R
...h Terence Parr's comment of "match > a bunch of crap in parentheses" would probably give a flavour of what to > implement. Depends what else the students are learning. > > Hope this helps rather than hinders. > > - Peter > > On 18 January 2018 at 05:25, Ranjan Maitra <maitra at email.com> wrote: > > > Thanks! I am trying to use it in R. (Actually, I try to give my students > > experiences with different kinds of files and I was wondering if there > were > > tools available for such kinds of files. I don't know Lisp so I do not...
2012 Dec 28
4
efficiently multiply different matrices in 3-d array with different vectors?
Hello, I have been wondering of an efficient way to do this: I have an n x m x p array Z and a p x n matrix Y. I want to multiply each of the n matrices with the corresponding column vector of Y. In other words, I am wanting to matrix multiply: Z[i, ,] %*% Y[, i] which will give me a (two-dimensional) array or matrix of dimension n x p with the i'th row storing the above. Any pointers
2007 Mar 21
3
question on suppressing error messages with Rmath library
Dear list, I have been using the Rmath library for quite a while: in the current instance, I am calling dnt (non-central t density function) repeatedly for several million. When the argument is small, I get the warning message: full precision was not achieved in 'pnt' which is nothing unexpected. (The density calls pnt, if you look at the function dnt.) However, to have this happen a
2001 May 13
1
CART in R
Can anyone please help me out? I would like to do CART (classification and regression trees) in R. Is this at all possible? If so, how? Thanks, Ranjan -- *************************************************************************** Ranjan Maitra, Department of Mathematics and Statistics, University of Maryland, Baltimore County, Baltimore, MD 21250, USA. *************************************************************************** \|/ satyamevajayate | tamasomaajyotirgamaya \|/ -*-...
2017 Oct 09
0
example of geom_contour() with function argument
...function, and also I did > not find anything from online searches. > > TIA, > BFD > > > > ----------------------------------------------------------------------------------------------- > > How about geom_contour()? > > Am So., 8. Okt. 2017, 20:52 schrieb Ranjan Maitra <maitra at email.com>: > > > Hi, > > > > I am no expert on ggplot2 and I do not know the answer to your question. > I > > looked around a bit but could not find an answer right away. But one > > possibility could be, if a direct approach is not possible, to...