similar to: initializing a multidimensional array..

Displaying 20 results from an estimated 5000 matches similar to: "initializing a multidimensional array.."

2006 Jul 05
8
loginGenerator - getting logged in username
i am working on a site taht uses loginGenerator.. it''s a great little package, but i am running into one little problem.. i would like to have something that says: "logged in as <username>" in the site, but i am not quite getting it.. what i am using is: <p>You are logged in as: <%= @session[:user] %> but i have tried: <p>You are logged in as:
2005 Nov 03
1
multidimensional integration not over a multidimensionalrectangle
Hi, anyone knows about any functions in R can get multidimensional integration not over a multidimensional rectangle (not adapt). For example, I tried the following function f(x,n)=x^n/n! phi.fun<-function(x,n) { if (n==1) { x }else{ integrate(phi.fun, lower=0, upper=x, n=n-1)$value } } I could get f(4,2)=4^2/2!=8, but failed in f(4,3)=4^3/3! Thanks Best, Lynette
2011 Oct 05
2
cuhre usage ?? multidimensional integration
my=function(x){ len=1 for(i in 1:len){ y[i]=x[i] } g=1 w=NULL t=NULL for(i in 1:len)w[i]=x[i+len] for(i in 1:len)t[i]=x[i+2*len] for(i in 1:len)g=g*dnorm(y[i])*dnorm(w[i])*dnorm(z[i]) return(g) } cuhre(6,1,my,rep(-100,6),rep(100,6)) Error in crff(match.call(), integrand, "cuhre", libargs, ...) : Additional argument not expected in the integrand function function change to
2011 Oct 21
2
Converting data frame into multidimensional array
Consider the following data frame X <- data.frame(Titanic) Does anyone know of an easy way to convert X into a multidimensional array? Example that doesn't work X <- as.array(X, dim=c(4,2,2,2)) To do what I need, X needs to be converted into an array of dimensions c(4,2,2,2) in this case, not a table. Thanks in advance.
2011 Jan 20
2
Using a list as multidimensional indexer
Hello list. Another 'puzzle' for which I don't have a clean solution. Say I have a multidimensional object, e.g.: Mm<-matrix(1:6, nrow=2, dimnames=list(c("a","b"), c("g","h","i"))) And on the other hand I have a list Ind<-list("b","g") This holds, for each dimension, an indexer for that dimension. Now I would
2005 Jun 28
1
enhanced multidimensional scaling?
Dear R list Would anyone be able to tell me whether it is possible to do "enhanced multidimensional scaling" (enhanced MDS) in R? In other words, something that goes beyond "cmdscale" by iteratively improving the fit between observed dissimilarities and inter-object distances, using the KYST algorithm (Kruskal, 1964). I have found several implementations of non-metric MDS
2005 Sep 22
1
multidimensional (smoothing) splines
Hi, I am approximation a value function (in dynamic programming) V: R^n->R. In different versions of the problem, n is between 2 and 5. I would like to use splines to use this, I checked the mailing list and CRAN but couldn't find anything that would help me (Tps in fields is too slow, cobs would be really nice but seems to be one-dimensional). Is there any package that would at least
2009 Oct 06
0
Kernlab: multidimensional targets in rvm(), ksvm(), gausspr()
Hi there, I'm trying to do a regression experiment on a multidimensional dataset where both x and y in the model are multidimensional vectors. I'm using R version 2.9.2, updated packages, on a Linux box. I've tried gausspr(), ksvm() and rvm(), and the models are computed fine, but I'm always getting the same error message when I try to use predict(): "Error in
2008 Nov 19
2
Multidimensional array with R
Hi there I know, I'm sure you discussed this stuff 100 times, but I really have a basic understanding problem, if and how do I create a multidimensional array in R. I'm coming from MATLAB and there it's as easy as you ever could imagine. Ok, so, I want to have an array, where I can fill in data from a Excel spreadsheet. The array should be addressed like this:
2010 Jun 10
1
importing multidimensional matrix from MATLAB
Hi, Suppose I have a matrix of size 256x14x32 in MATLAB. I want to import that into R. I used readMat and then do.call. But the variable is stored as an array as its done in R. However, I want to define a variable W=array(0,c(256,14,32)) in R and read the multidimensional matlab variable into W. I am not able to do this in R. Please, could you help ? Thanks Gopi [[alternative HTML version
2009 Jun 10
1
Analisys in Multidimensional contingency tables
Dear R-list, Hi everyone, Im trying to make an analysis of multidimensional contingency tables using R. I' working with the Agresti example where you have the data from 3 categories. The thing is how can I do the analisys using the G2 statistics. Somebody can send me an Idea? I attach the program where you can find the data. Best Regards, > prob1<-
2001 Apr 02
1
Multidimensional Scaling
Hi Does anyone know if there's a package I can use to do Multidimensional scaling ? Thank's EJ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at
2003 Feb 27
0
[despammed] RE: multidimensional function fitting
If something like the second-order function does not fit your data well, it may well be that the data do not admit a simple structure that you can easily code in C. If you expect the structure of the function to be simple, tell gam() so by specifying a small dimensional basis (via the k= argument in s()). This will probably ease the computational burden. HTH, Andy > -----Original
2003 Feb 28
0
[despammed] RE: multidimensional function fitting
You can use R objects, such as the return from gam, and the predict.gam function, from C. See the R extensions manual. Reid Huntsinger -----Original Message----- From: RenE J.V. Bertin [mailto:rjvbertin at despammed.com] Sent: Thursday, February 27, 2003 3:42 PM To: Wiener, Matthew Cc: r-help at stat.math.ethz.ch Subject: Re: [despammed] RE: [R] multidimensional function fitting On Thu, 27
2003 Dec 03
1
multidimensional Fisher or Chi square test
Hello, Is there a test for independence available based on a multidimensional contingency table? I've about 300 processes, and for each of them I get numbers for failures and successes. I've two or more conditions under which I test these processes. If I had just one process to test I could just perform a fisher or chisquare test on a 2x2 contigency table, like this: for one process:
2005 Nov 04
1
Stress in multidimensional scaling
Hello, We are trying to find a function to compute "stress" in our multidimensional scaling analysis of a dissimilarity matrix. We've used "dist()" to create the matrix and "cmdscale()" for the scaling. In order to determine the number of dimensions we would like to plot stress vs. dimensions. However, we cannot find a pre-made command. It seems that other
2009 Feb 18
1
multidimensional scaling with long form data
I have a dissimilarity dataset with the form: 1 1 dissimilarity value 1 2 ... 1 3 1 4 2 2 2 3 2 4 ... I would like to do nonmetric multidimensional scaling with this data, but I am having trouble using this format. I would like to either find a function that accepts this format or find a way to easily convert this format to a matrix for use with existing functions. Thanks!
2009 Mar 23
1
how to estimate multidimensional spectral measure of coherence
Please, does anyone know of an R packge to estimate multidimensional spectral measure of coherence within a moving time window ? Some time ago I expeimented with a similar package that performs Cross Spectrum Analysis on the whole signal though. Unluckily I deal with non-stationary signals whose properties change along with time. Therefore estimates can only be made over time periods roughly
2011 Jan 19
1
combining matrices from a list into a multidimensional array
I get some results back from running an iterative analysis in the form of a list of matrices. What I would like to do with this list is combine it such that all the similar components get combined into a multidimensional array. If possible I'd like to put results[[1]]$resultmean and results[[2]]$resultmean into a 3x3x2 array, and also put results[[1]]$resultsd and results[[2]]$resultsd in a
2002 Oct 13
0
row and column totals in multidimensional tables
Hello! the function apply() allows to compute the row sum of a multidimensional table but, when I try to merge the new column with the original table whith cbind(), the grouping varibles disapear and the new table is bidimensional. Knows anybody how to add row totals to a multidimensional table? Thanks in advance Juan Pablo _________________________________________________________________