similar to: (no subject)

Displaying 20 results from an estimated 3000 matches similar to: "(no subject)"

2004 Nov 26
2
(no subject)
Good afternoon, I'd like to know how to superimpose a Student distribution pt on a histogram. I think I have to use the plot function but I don,t know the details. Other question: what is a quntile function? Can you help me? Thank you.
2005 Jan 21
6
Avoiding a Loop?
Dear R-Helpers, I have a matrix where the first column is known. The second column is the result of multiplying this first column with a constant "const". The third column is the result of multiplying the second column with "const"..... So far, I did it like this (as a simplified example): nr.of.columns <- 4 myconstant <- 27.5 mymatrix <- matrix(numeric(0), nrow=5,
2006 Jul 14
2
References verifying accuracy of R for basic statisticalcalculations and tests
Hi, > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Corey Powell > > Do you know of any references that verify the accuracy of R > for basic statistical calculations and tests. The results of > these studies should indicate that R results are the same as > the results of other statistical packages to a certain number > of decimal places on some benchmark
2005 Dec 08
3
Reshaping data
Dear all, given I have data in a data.frame which indicate the number of people in a specific year at a specific age: n <- 10 mydf <- data.frame(yr=sample(1:10, size=n, replace=FALSE), age=sample(1:12, size=n, replace=FALSE), no=sample(1:10, size=n, replace=FALSE)) Now I would like to make a matrix with (in this simple example) 10 columns (for the
2005 Aug 17
2
power of a matrix
Dear all, I have a population with three age-classes, at time t=0 the population is: n.zero <- c(1,0,0) I have a transition matrix A which denotes "fertility" and "survival": A <- matrix(c(0,1,5, 0.3,0,0, 0,0.5,0), ncol=3, byrow=TRUE) To obtain the population at t=1, I calculate: A %*% n.zero To obtain the population t=2, I calculate: A %*% (A %*% n.zero) ... and so
2005 Feb 03
2
Surprising Behavior of 'tapply'
Dear all, I wanted to make a two-way-table of two variables with a counting variable stored in another column of a dataframe. In version 1.9.1, the behavior is as expected as shown in the simplified example code. > sex <- rep(c("F", "M"), 5) > income <- c(rep("low", 5), rep("high", 5)) > count <- 1:10 > mydf <-
2005 May 22
2
Maps, Eastern Europe
Dear all, I would like to employ a European map in a presentation. My idea was to use: library(mapdata) map("worldHires", c("Austria", "Switzerland", "Germany")) where I include all countries from my analysis as a vector of character strings like in the example above. Unfortunately, I was unable to specify the Baltic States (Latvia, Lithuania, Estonia) or
2006 Mar 09
0
Linking Rblas [under Windows]
Dear Prof. Ripley, thank you very much. It works now absolutely fine using a "Makevars" file with the contents you suggested. Thanks again, Roland > -----Original Message----- > From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] > Sent: Thursday, March 09, 2006 12:09 PM > To: Rau, Roland > Cc: r-help at stat.math.ethz.ch > Subject: Re: [R] Linking Rblas
2005 Sep 19
6
Teaching R - In front of the computer?
Dear R-Users, given you have been teaching R to students (grad level, mainly social science background, no previous programming experience, 80% know SPSS), what are your experiences concerning the style of teaching? Do you prefer to stand in front of the class like in "normal" lectures and you show them slides? Or do you you explain some concept (for example things like
2005 May 15
1
Save parameters from optim during iteration procedure
Dear R-users, I am going to try to be as clearer as possible, showing also an example. 1) I have a function (in my real case it's much more complex) 2) I use "optim" to minimize 3) I want to use as method L-BFGS-B for several reasons 4) I know I could use "trace=6" (in "control") in order to see "live" the procedure 5) I would like to see separately the
2006 May 16
1
optim with specific constraints on possible values
Dear R-users, I am working with some grid-search optimization for 13 values of an object function. At glance one may compute the object function for each possible combination of set of parameters, but in my case would not be feasible: taking for example 13 possible values for each parameters like, in logarithm scale, 10^seq(-3,3,.5) will lead to 13^13 combinations of results. As a second trial
2006 Jan 30
3
Subsetting a matrix without for-loop
Dear R-users, I'm struggling in R in order to "squeeze" a matrix without using a for-loop. Although my case is a bit more complex, the following example should help you to understand what I would like to do, but without the slow for-loop. Thanks in advance, Carlo Giovanni Camarda A <- matrix(1:54, ncol=6) # my original matrix A.new <- matrix(nrow=3, ncol=6) # a new
2004 Jul 30
1
optimisation procedure with flat log-likelihood
Dear R-friends, I use optim(par=c(mystartingpoints), fn=myloglikelihoodfunction, gr=NULL, method=c("L-BFGS-B"), ## I would like to do not use any bounds control=list(trace=6, ## just to see what it's going on maxit=c(20000)), ## to be sure the it doesn't stop reaching the max iterations
2004 Aug 30
3
Generalized Singular Value Decomposition (GSVD)
Dear R-users, I couldn't find a function or some help in R-project web about the Generalized Singular Value Decomposition. In MatLab there is a simple function for this algebric issue (gsvd). Is there anything like that in R? And, if not, could you help me to apply this method in R? Thanks in advance, Giancarlo +++++ This mail has been sent through the MPI for Demographic Rese...{{dropped}}
2005 May 19
5
Arranging Plots
Dear all, I'd appreciate any hints how to arrange some plots. I have three plots. I would like to arrange them in the following order: - Plot 1 and Plot 2 should be in the upper row - Plot 3 should be in the lower row but centered in the middle. I hope the following sketch will help understanding my problem ================ | === === | || P1| |P2 | | || | | | | | === === |
2006 Mar 14
1
Tiny Typo in R Data Import/Export Manual
Dear all, in the first paragraph in Section 4.3.2 of the "R Data Import/Export Manual", it is written 'We havew tested...'. Most likely it should be 'We have tested...' It is just such a minor thing that I was unsure whether to submit a bug report. I use now R 2.2.1 on Win32 but I guess this is independent of the platform and version. Best, Roland P.S. Thanks for
2006 May 29
1
OT: Monograph on Statistical Programming
Dear all, my question might be a bit off-topic. Is there anything like a standard textbook on statistical programming? With that I don't mean anything like MASS, S Programming, Programming with Data, ... (no offense meant, they are fantastic books and each of those three helped me a great deal). Rather in the direction of the "Numerical Recipes" Series addressing how to implement
2004 Jul 22
3
Replace only Capital Letters
Dear All, I have these data: exampledata <- c("This is one item", "This is Another One", "And so is This") I would like to find each occurence of a blank space followed by a Capital Letter and replace it by a blank space, a left curly brace, the respective Capital Letter, and then a right curly brace. I thought the following will do: gsub(pattern = "
2004 Dec 21
1
No Graphics Window, Mandrake 10.1
Dear all, I installed Mandrakelinux 10.1 (community) on my notebook. Before, I used Mandrakelinux 9.1 (and later 10.0 as an update). Now I wanted to compile, as before, R. In the beginning, nothing worked but it seemed to be the problem of GCC 3.4.1 which was shipped with my distribution. After downloading and compiling GCC 3.4.3 everything went smoothly during the compilation of R. The problem
2007 Jun 30
1
Importing an Excel file that has merged cells
Dear all, I have a problem with importing an excel file into R. I can open the file easily (either saving it as a CSV or using RODBC). But the original file is using merged cell in its first column, which gives the name of the observation. (I am dealing with repeated measurements for the same observation) So when I open the dataframe in R it looks like this Col1 Col2 Col3 name1 val1 val2