Re: [R] Log linear model - Showing non-deviation form in glm()

2010-03-23 Thread Christoffer Karlsson
I just found the assoc plot function in vcd which lets me visualize the data and shows which effects are significant. I'm not sure if I'm misinterpreting the coefficients from R. The way I interpreted is that since, for example, the interaction term typNya:kategori1-10 is significant and

Re: [R] Saving tab/csv delimited data with NaN's

2010-03-23 Thread Rolf Turner
On 24/03/2010, at 12:34 PM, Sharpie wrote: shankar-17 wrote: Hello, I am working multiple simulated data sets with missing values, I would like to store these data sets in either tab delimited format for .csv format with missing values marked as NaN's instead of NA's. I read

[R] Changing axis origin for plot

2010-03-23 Thread Ralf B
Hi all, I am plotting data using the simple plot function: plot(data$x, data$y) which results in a standard plot with the axis origin in the lower left corner. ^ | | | | | O O | O O -- Since my data are screen coordinates I need mirrored axis so that the origin

Re: [R] Saving tab/csv delimited data with NaN's

2010-03-23 Thread Sharpie
Rolf Turner wrote: On 24/03/2010, at 12:34 PM, Sharpie wrote: foo - matrix(0,nrow=3,ncol=3) foo [,1] [,2] [,3] [1,]000 [2,]000 [3,]000 foo[3,3] - NA foo [,1] [,2] [,3] [1,]000 [2,]000 [3,]00 NA

Re: [R] Adding matrix rows that have the same name?

2010-03-23 Thread Dennis Murphy
Hi: The plyr solution is as follows, where your 'matrix' is a data frame m whose first column is a factor: m V1 V2 V3 V4 V5 V6 V7 1 jim 1 0 0 0 0 0 2 jim 0 1 0 0 0 0 3 jim 0 0 1 0 0 0 4 bob 1 0 0 0 0 0 5 bob 0 0 1 0 0 0 6 harry 0 0 1 0 0 0 7

[R] Monte Carlo simulation in R

2010-03-23 Thread Hongwei Dong
Hi, R-helpers, I'm trying to use R to do a Monte Carlo simulation and need the help. What I have is a matrix that consists of the probabilities for the persons to choose zones. For example, in the matrix shown below, each column represents a person, and each row represents a zone. So, the

Re: [R] no predict function in lme4 ?

2010-03-23 Thread Ben Bolker
Douglas Bates bates at stat.wisc.edu writes: It is not easy to decide what predict should return for a linear mixed model, let alone the more complicated cases. Do you want predictions based on the fixed-effects only or based on a combination of the fixed-effects and the random-effects? For

Re: [R] rpad ?

2010-03-23 Thread Tom Short
As the author of Rpad, I'll say that it is officially abandoned. I just don't have the time or the need for my job. If someone is interested in maintaining it, I'll try to answer questions (the email address listed on the package hasn't worked for a while, and the mailing list got overwhelmed with

Re: [R] Monte Carlo simulation in R

2010-03-23 Thread David Winsemius
On Mar 23, 2010, at 9:05 PM, Hongwei Dong wrote: Hi, R-helpers, I'm trying to use R to do a Monte Carlo simulation and need the help. What I have is a matrix that consists of the probabilities for the persons to choose zones. For example, in the matrix shown below, each column represents

[R] Getting choropleth map intervals correct

2010-03-23 Thread LCOG1
Hello all, Working on mapping some probabilities using R to a geographic unit called a TAZ.The below data will work but you will have to set your directory for the shape file. Never did this before so hopefully this works. ResProbs is just supposed to be a value between 0-1, sorry if that

[R] with data in the form of an R data objecte: Monte Carlo simulation in R

2010-03-23 Thread Hongwei Dong
Hi, please use the following the matrix z as the example: x-c(2,4,5,7,6,9,8,2,0) y-matrix(x,3,3) z-apply(y,2,function(x)x/sum(x)) z On Tue, Mar 23, 2010 at 6:59 PM, David Winsemius dwinsem...@comcast.netwrote: On Mar 23, 2010, at 9:05 PM, Hongwei Dong wrote: Hi, R-helpers, I'm trying

Re: [R] Saving tab/csv delimited data with NaN's

2010-03-23 Thread Viswanathan Shankar
Thank you a ton - this simplifies my work considerably.- Shankar Rolf Turner wrote: On 24/03/2010, at 9:50 AM, shan...@bios.unc.edu wrote: Hello, I am working multiple simulated data sets with missing values, I would like to store these data sets in either tab delimited format for .csv

<    1   2