similar to: Dividing objects in classes using function sample()

Displaying 20 results from an estimated 1000 matches similar to: "Dividing objects in classes using function sample()"

2007 Jun 23
2
Highliting a text in a plot
Hi everyone, I want to highlight something in a plot. So I want to write a text with a yellow background. I tried to make use of text(x,y,"hallo",bg="yellow") but that does not work. I know I am a handful. Sorry! Maja! --
2007 Aug 07
1
Functions for autoregressive Regressionmodels (Mix between times series and Regression Models) ?
Hello everybody, I've a question about "autoregressive Regressionmodels". Let Y[1],.....,Y[n], be a time series. Given the model: Y[t] = phi[1]*Y[t-1] + phi[2]*Y[t-1] + ... + phi[p]*Y[t-p] + x_t^T*beta + u_t, where x_t=(x[1t],x[2t],....x[mt]) and beta=(beta[1],...,beta[m]) and u_t~(0,1) I want to estimate the coefficients phi and beta. Are in R any functions or packages for
2007 Aug 04
2
Problems using "lm" in combination with "predict"
Hello everybody, I'm trying to predict a linear regression model but it does not work. My Model: y = Worktime + Vacation + Illnes + Bankholidays My modelmatrix is of dimension 28x4 Then I want to make use of the function predict because there confidence.intervals are include. My idea was: mod <- lm(y~Worktime+Vacation+Illnes+Bankholidays) newdate=data.frame(x=c(324,123,0.9,0.1))
2007 Jun 12
1
Problems with Vista, R 2.5.0 and function save
Hi everyone, I want to make use of the save function but it did not work. I'm using vista and R 2.5.0, winzip is installed too. Here's the code (from example ?save): > x <- runif(20) > y <- list(a = 1, b = TRUE, c = "oops") > save(x, y, file = "xy.Rdata") Fehler in gzfile(file, "wb") : kann Verbindung nicht ?ffnen Zus?tzlich:
2007 May 22
2
German Map in package maps
Hello everybody, I'm an absolute newbe in R, so please be gentle to me. I am looking for a german map in the package maps by Becker and Wilks. After that I want to draw the German cities from world.cities of this package in the map and want to draw further a line from Berlin to Munich. Has anybody an idea? Thank you so much and sorry for the question! Best regards from Berlin, Maja!
2007 Jun 11
1
Starting R within an VBA makro
Hello everybody, at work I want to start R within an VBA program. First I calculate something in Excel 2003. After that I want to start within my VBA makro R wich should start an R file, say i.g, superplot.R which plots me the data well. So is it possible? Maybe something like that: sub test() 'calculate something start R superplot.R end test() Thank you so much. Kindly
2007 Jul 15
1
Text with differents colors in a plot / Detecting if text exists
Hi everybody, I want to write some text in a plot. That's simple I know. But I want to make use of different colors. Eg. text(x,y,paste("Sunderland","high")). Then Sunderland should be black and "high" red. Has anyone an idea? By the way. I'm looking for a function or something similar, that can check whether there is text in some regions on the plot.
2017 Mar 26
3
[Euro LLVM] Unofficial beer before the conference
I’m going to travel with another person, so 2 people in total Cheers, Hsu > Tobias Grosser <tobias.grosser at inf.ethz.ch> 於 2017年3月26日 下午4:16 寫道: > > We have a table reserved at Tante Maja, 18:00 for 15 people. I am travel > with 5 other people, so 10 more spots are open. Please let me know > within 30 minutes if you want a spot, such that I can confirm the >
2006 Nov 12
1
How to increase decimal places
Hello everyone, does anybody know how to increase the decimal places that R uses to calculate something. I think that in default R uses 6 decimal places but I need 12. Thank you very much! Best regards, Maja! --
2017 Mar 26
5
[Euro LLVM] Unofficial beer before the conference
I like Tante Maja. I will call them and see if we can flood them. ;-) I suggest dinner at 18:00? Best, Tobias On Sun, Mar 26, 2017, at 04:08 PM, Bekket McClane via llvm-dev wrote: > Hi, I’m one of the poster session authors, I’m also currently in > Saarbruken > All three places sound nice to me, but I’m not familiar with this town so > maybe you can pick the place? > About the
2010 Oct 15
4
Set value if else...
Hi I want to set a variable to either 1 or 0 depending on an value of a dataframe and then add this as a colum to the dataframe. This could be done with a loop but as we are able to do questions on a complete row or colum without a loop it would be sweet if it could be done. for example: table: Name Age Joel 24 agust 17 maja 40 and so on... And what I want to do is a command that
2017 Mar 26
2
[Euro LLVM] Unofficial beer before the conference
On Sun, Mar 26, 2017, at 04:23 PM, Piotr Padlewski via llvm-dev wrote: > Hey Tobias, > 4 spots for me and my folks. Thanks for taking care Tobias! OK. We are down at 2 spots (maybe a little bit more) Piotr 4 spots Tobias 5 spots Bekket 2 spots Alex 2 spots 13 out of 15 spots taken. Let me know if you wanna join. I can try to get some more spots. Best, Tobias Best, Tobias
2005 Feb 23
2
[LLVMdev] Python bindings for LLVM API
Hi, I would like to share my experimental LLVM API Python bindings with the LLVM enthusiasts. I have created Boost.Python wrappers largely for the VMCore interface and other selected interfaces (e.g. ExecutionEngine). The bindings provide direct runtime access to the LLVM bytecode and JIT execution features from Python. The bindings are complete enough so that one can e.g. run the Fibonacci
2017 Mar 26
3
[Euro LLVM] Unofficial beer before the conference
Hi, I've heard some people are in Saarbrucken and would like to go for a dinner together. I've found some places that should be good for groups: Old Murphys https://goo.gl/maps/aPXjfwJGSgS2 Tante Maja https://goo.gl/maps/yF9Gij5qPoN2 Vapiano https://goo.gl/maps/knK9edHPE1y Is someone interested in meeting this evening (probably after 5:30)? Piotr -------------- next part
2009 Aug 11
1
Help on a combinatorial task (lists?)
Hello! I have the following combinatorial problem. Consider the cumulative sums of all permutations of a given weight vector 'w'. I need to know how often weight in a certain position brings the cumulative sums equal or above the given threshold 'q'. In other words, how often each weight is decisive in raising the cumulative sum above 'q'? Here is what I do: w <-
2011 Mar 10
2
identical values not so identical? newbie help please!
Hi there! I'm not sure I can create a minimal example of my problem, so I'm linking to a minimal .RData file that has only two objects: obs and exp, each is a 6x9 matrix. http://dl.dropbox.com/u/10364753/test.RData link to dropbox file (I hope this is acceptable mailing list etiquette!) Here's what happens: > obs[1, 1] [1] 118 > exp[1, 1] [1] 118 > obs[1, 1]-exp[1, 1] [1]
2006 May 08
3
Non repetitive permutations/combinations of elements
Hello all, I am trying to create a matrix of 1s and -1s without any repetitions for a specified number of columns. e.g. 1s and -1s for 3 columns can be done uniquely in 2^3 ways. -1 -1 -1 -1 -1 1 -1 1 -1 -1 1 1 1 -1 -1 1 -1 1 1 1 -1 1 1 1 and for 4 columns in 2^4 ways and so on. I finally used the function combn([0 1],3) that I found at the following link
2005 Feb 24
0
[LLVMdev] Python bindings for LLVM API
Jarno, This looks like it could be very valuable - thanks for making it available. Just out of curiosity, do you have any specific uses in mind for which you created these bindings? --Vikram http://www.cs.uiuc.edu/~vadve http://llvm.cs.uiuc.edu/ On Feb 23, 2005, at 5:21 PM, Jarno Seppänen wrote: > Hi, > > I would like to share my experimental LLVM API Python bindings with >
2010 Jan 18
2
function to set log(0)=0 not working on tables or vectors
There must be a very basic thing I am not getting... I'm working with some entropy functions and the convention is to use log(0)=0. So I wrote a function: llog<-function(x){ if (x ==0) 0 else log(x) } which seems to work fine for individual numbers e.g. >llog(0/2) [1] 0 but if I try whole vectors or tables: p<-c(4,3,1,0) q<-c(2,2,2,2) llog(p/q) I get this: [1] 0.6931472
2007 Feb 01
2
Index mapping on arrays
Dear R-community, I have some trouble with index mappings for arrays. If, for example, I have the array R> A <- array(1:9, c(3,3,2)) and two index mappings both of same size R> x <- c(2, 3) R> y <- c(1, 2) Now I want to access the elements (A[1, x[i], y[i]])_i of A, i.e. A[1, x[1], y[1]] = A[1, 2, 1] and A[1, x[2], y[2]] = A[1, 3, 2]. If I use R> A[1, x, y] I would get