search for: rand1

Displaying 6 results from an estimated 6 matches for "rand1".

Did you mean: raid1
2011 Feb 17
0
Multi-response MCMCglmm (gaussian and zapoisson)
...nce matrices. My current model looks like this: prior<-list(R=list(V=diag(4),nu=0.004),G=list(G1=list(V=diag(4)/4,n=4),G2=list(V=diag(4)/4,n=4),G3=list(V=diag(4)/4,n=4))) m1<-MCMCglmm(fixed=cbind(resp1,resp2,resp3) ~ trait:(expl1 + expl2+ expl3+ expl4+ expl5...)+trait-1, random=~us(trait):rand1+us(trait): rand1: rand2+us(trait): rand1: rand2: rand3, rcov=~us(trait):units,family=c("gaussian","gaussian","zapoisson"),nitt=20000,burnin=5000,thin=10,prior=prior,data=dat) However, for zero-altered models it is recommended in the MCMCglmm course notes to constrain...
2002 Jul 27
1
Working with lists
Greetings All, I'm stuck and would appreciate some help. After writing a function to generate a random sample from vector "rand1": > f<-function(i) {y<-sample(rand1,296,replace=F)} and using the function to generate multiple samples from rand1 and store the results in list "l": > l<-lapply(1:100,f) I can't get the next step accomplished; I'd like to sort each of the generated samples....
2011 May 30
0
2D random walk with traps convert C++ code to R code
...de <iostream> #include <math.h>#include <fstream.h>#include <time.h> #define IA 16807#define IM 2147483647#define AM (1.0/IM)#define IQ 127773 #define IR 2836#define NTAB 32#define NDIV (1+(IM-1)/NTAB)#define EPS 1.2*pow(10,-7)#define RNMX (1.0-EPS) using namespace std;float rand1(long *idum); int main(){ long run=10000,adr=-run,x,y,hapa=0,i=0; int dimx=700,dimy=700,nrg=50, M[dimx][dimy]; double rnd,sum=0; long k[run+1],frekuenca; bool njehsuar[run+1], next; ofstream Txt("EndjeMePengesa2D.txt"); printf("\nProgrami ekzekutohet:\ni=1 ne %d",run); for (i=1...
2008 May 14
6
PWGL in wine, problems
Hello, I'm new on this list. First of all, thank you to all the developers of this great project! At the moment there is only an application that keeps me on both macos and windows, its name is PWGL a free environment for computer assisted composition in openGL. (http://www2.siba.fi/PWGL/) I'm running Ubuntu 8.04 and wine 0.9.59. I have to say that I also installed vcrun2005 and
2011 Dec 14
0
hclust and ggplot2
....1) all[4,]=rbinom(columns,1,.1) all[3,]=rbinom(columns,1,.1) all[2,]=rbinom(columns,1,.1) all[1,]=rbinom(columns,1,.1) all[6:9,]=rbinom(columns,1,.1) all[10:19,]=rbinom(columns,1,.3) all[20:29,]=rbinom(columns,1,.7) #1 to 10 .5 11 to 89 .9 .1 90 columns #calculate the distances for clustering rand1=dist(all) #cluster on those distances and plot hc1=hclust(rand1,"average") plot(hc1) ## now plot using ggplot and polar coordinates. Line starting p<-ggplot(data=x) yields the error. This is the online code I found. library(ape) library(cluster) library(ggplot2) x <- as.phylo...
2014 Oct 16
2
[LLVMdev] RFC: Should we have (something like) -extra-vectorizer-passes in -O2?
----- Original Message ----- > From: "Chandler Carruth" <chandlerc at google.com> > To: "Zinovy Nis" <zinovy.nis at gmail.com> > Cc: "Hal Finkel" <hfinkel at anl.gov>, "James Molloy" <james at jamesmolloy.co.uk>, "LLVM Developers Mailing List" > <llvmdev at cs.uiuc.edu> > Sent: Thursday, October 16, 2014