[R] Is there any package for Vector Auto-regressive with exogenous variable other than fastVAR?

2012-10-03 Thread Sankalp
Is there any package for Vector Auto-regressive with exogenous variable other than fastVAR? Because it is not able to solve my problem of not taking the base in the model. Please suggest some appropriate solution -- View this message in context: http://r.789695.n4.nabble.com/Is-there-any-pa

[R] Intermittent connectivity issues for JDBC / Oracle

2012-10-03 Thread dh_ss
I have been experiencing issues with an R script hanging when connecting to an Oracle database. To help debug, I found a function here in the nabble forum and made a small test script: #!/usr/bin/Rscript --no-restore --no-save --no-init-file library("RJDBC") drv<-JDBC("oracle.jdbc.OracleDri

[R] Find the average line from several lines

2012-10-03 Thread Greg Lollback
Hi people, I'm looking at the influence of sample size on a dataset, so I randomly sampled from the data with different sample sizes multiple times using the "sample" and "replicate" function. For example: /replicate(1000, sample("variable name", "sample size", replace=T))/. I saved the data,

Re: [R] Legend Truncated Using filled.contour

2012-10-03 Thread K Simmons
Data attached - didn't realize I could do that last night. Here's the data inport piece of my code, change the pathname to your computer. asym<-read.csv('/Users/kirstensimmons/Desktop/Asym04.csv') asym #put the data into a data matrix asym_matrix<-data.matrix(asym) On Thu, Oct 4, 2012 at 6:35

Re: [R] (no subject)

2012-10-03 Thread peter dalgaard
On Oct 3, 2012, at 22:27 , arun wrote: > HI, > > I guess I understand what you meant (read the very first post on the same > subject). Umm, the first post on "(no subject)" that I have is about Ruby on Rails from March 2010 Please use sensible subject lines, folks! -pd -- Peter Dalgaa

Re: [R] Legend Truncated Using filled.contour

2012-10-03 Thread David Winsemius
On Oct 3, 2012, at 12:58 PM, Kirsten wrote: > Hey everyone, > > I'm working on a contour plot depicting asymptomatic prevalence at varying > durations of infectiousness and force of infection. I've been able to work > everything out except for this one - my legend title keeps getting cut off.

Re: [R] Get Cran R to use system proxy settings

2012-10-03 Thread Jeff Newmiller
Off-topic here. Try https://stat.ethz.ch/mailman/listinfo/r-sig-debian. I also strongly recommend that you be more specific about what you have tried and how it didn't work as you expected when you post there. --- Jeff Newmil

Re: [R] patch download?

2012-10-03 Thread Jeff Newmiller
That is silly. The primary difference is that certain bugfix patches have been applied. A side-effect of this "first patched" status is that unintentional bugs may have been introduced, so unless you have already encountered a bug that was patched there then you are likely better off sticking w

Re: [R] can't see colors with "col" in boxplot()

2012-10-03 Thread David Winsemius
On Oct 3, 2012, at 1:58 PM, Mark B wrote: > Hi, > I am trying to color the data points on my boxplot but I only get the > default black. You mean the outlier points? > Not sure why. Any ideas? Look at: ? bxp ... and try ,,, outcol="red" > Thank you, > Mark > > Here is my code. > > >

Re: [R] Failed installWithVers from local tar.gz

2012-10-03 Thread David Winsemius
On Oct 3, 2012, at 12:42 PM, kkarr wrote: > Hi, > I am having trouble installing a previous version of a package, and multiple > version of the package in R 2.12 or 2.15. I have download the tar.gz > packages from the CRAN archive, and created an folder holding all the files. > > install.packa

[R] Geographical Interpolation functions

2012-10-03 Thread Camilo Mora
Hi I am comparing different interpolation methods on climate data. I have found quite a few functions (e.g. spline and kriging) but I wonder if Nearest-neighbor interpolation and Natural neighbor function are available in an R package? Thanks, Camilo Camilo Mora, Ph.D. Department of Geog

[R] can't see colors with "col" in boxplot()

2012-10-03 Thread Mark B
Hi, I am trying to color the data points on my boxplot but I only get the default black. Not sure why. Any ideas? Thank you, Mark Here is my code. > dat.g100 <- dat.sg[100,] # selected gene (row) from a dataframe of 37 columns > d1 <- as.matrix(dat.g100[,1:18]) # subset 1 > d2 <- as.matrix(d

Re: [R] (no subject)

2012-10-03 Thread arun
HI, I guess I understand what you meant (read the very first post on the same subject). Try this: set1<-structure(list(ID = c("ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds002", "ds002", "ds002", "ds002", "ds002", "ds002", "ds002" )

[R] Legend Truncated Using filled.contour

2012-10-03 Thread Kirsten
Hey everyone, I'm working on a contour plot depicting asymptomatic prevalence at varying durations of infectiousness and force of infection. I've been able to work everything out except for this one - my legend title keeps getting cut off. Here's what I have: filled.contour(x=seq(2,30,length.ou

[R] patch download?

2012-10-03 Thread Poggio, John
Is the primary difference between the current version download (e.g., 2.15.1) and the "patched" download of these R files that the patched files have NOT been verified? Please confirm and thanks! [[alternative HTML version deleted]] __ R-help

Re: [R] Errors when saving output from WinBUGS to R

2012-10-03 Thread yiyiwang
Sorry for any cross messaging. Here are what I've tried and more info. The error sticks :( I installed the latest R2.15.1 (64bit) on my machine, per Uwe's comments. The same error happened. Log file of WinBUGS look perfectly normal: ### display(log) check(C:/Jinmodel/test_c

[R] Failed installWithVers from local tar.gz

2012-10-03 Thread kkarr
Hi, I am having trouble installing a previous version of a package, and multiple version of the package in R 2.12 or 2.15. I have download the tar.gz packages from the CRAN archive, and created an folder holding all the files. install.packages("changepoint_0.3.tar.gz", lib="~/Rtools/dir/of/pkgs/

Re: [R] nlme: spatial autocorrelation on a sphere

2012-10-03 Thread Spencer Graves
Hi, Dan: That's great. Do you have a package that would be a reasonable home for this solution? If yes, I would encourage you to add functions similar to those described by Malcolm Fairbrother. If it were mine, I think I might prefer to call rdist.earth directly rather than ma

Re: [R] nlme: spatial autocorrelation on a sphere

2012-10-03 Thread Dan Bebber
This message from Malcolm Fairbrother at R-sig-ME, who has a potential solution... [Begin forwarded message] I struggled with this a couple years ago, and the best solution I could find (or at least that I think I found) was to modify corStruct.R, gls.R, and lme.R, adding a new function "dist2"

Re: [R] Kolmogorov distribution

2012-10-03 Thread offinger
You need to use p[IND] <- .C(stats:::C_pkstwo, length(x[IND]), p = x[IND], instead of p[IND] <- .C(C_pkstwo, length(x[IND]), p = x[IND], -- View this message in context: http://r.789695.n4.nabble.com/Kolmogorov-distribution-tp4639751p4644945.html Sent from the R help mailing list archive a

Re: [R] integrate / Vectorize question

2012-10-03 Thread Rui Barradas
Hello, Try Fnum <- function(x, beta){ sapply(x, function(x) integrate(f,lower=-x,upper=0,beta=beta)$value) } And all results were the same. Hope this helps, Rui Barradas Em 03-10-2012 21:59, Gerrit Draisma escreveu: Dear R-users, I want to use the function Fnum below in another integra

[R] integrate / Vectorize question

2012-10-03 Thread Gerrit Draisma
Dear R-users, I want to use the function Fnum below in another integrate procedure. How do I write Fnum so that it returns a vector of values? And will the last integrate return the right answer? (I tried Vectorize() in several places, but got all sorts of errors.) Thanks for helping out. Ger

Re: [R] "options" in R

2012-10-03 Thread William Dunlap
In S+ 8.2 help(options) says time.zone a character string specifying the default time zone when none is given in a time object. Its default value is "GMT". It is used as the default value of the 'zone' argument to the constructors of "timeDate" objects (where it says "time object" it cou

Re: [R] "options" in R

2012-10-03 Thread David Winsemius
On Oct 3, 2012, at 11:00 AM, Santosh wrote: > Dear Rxperts, > Was wondering if there is any function in R similar to > options("time.zone"): found in S-Plus that can help in looking at the > default timezone settings.. Many of us have no way to understand questions based on analogies with S. Are

Re: [R] how to flip row/ column of a matrix?

2012-10-03 Thread Duncan Murdoch
On 03/10/2012 3:14 PM, Jason Love wrote: Hi all, Sorry about posting such a basic question, but I can't seem to find out a way of flipping a column and row of a matrix. In matlab, this can be easily done by putting a prime next to a variable name. (e.g., a -> a') If anyone knows, please help. t

Re: [R] how to flip row/ column of a matrix?

2012-10-03 Thread Sarah Goslee
Do you mean all the rows and columns, or just a row and column as you said? Your reference to matlab makes me think the former, in which case all you need is ?t - the transpose function. Sarah On Wed, Oct 3, 2012 at 3:14 PM, Jason Love wrote: > Hi all, > Sorry about posting such a basic questio

[R] how to flip row/ column of a matrix?

2012-10-03 Thread Jason Love
Hi all, Sorry about posting such a basic question, but I can't seem to find out a way of flipping a column and row of a matrix. In matlab, this can be easily done by putting a prime next to a variable name. (e.g., a -> a') If anyone knows, please help. -Jason [[alternative HTML version del

Re: [R] Creating tiff with 1200 dpi

2012-10-03 Thread Peter Langfelder
Well, if I read the error message right, your image is too large. I think you should explore alternate formats - does the journal accept figures in a vector format such PS, EPS or PDF? Such figures will be much easier to handle than a humongous tiff with file size of 60+ megabytes. HTH, Peter

Re: [R] Creating tiff with 1200 dpi

2012-10-03 Thread Guillaume Bal
I also had a lot of trouble to create the figs exactly as I want then using R alone. Now, I generally create a postscript image in R and I use gimp after so I can easily modify the resolution. On 10/3/2012 11:56 AM, David Winsemius wrote: On Oct 3, 2012, at 11:52 AM, David Winsemius wrote:

Re: [R] (no subject)

2012-10-03 Thread arun
HI, You mentioned what you don't want as output.  So, this might be a bit of guesswork. Try this: set1<-structure(list(ID = c("ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds001", "ds002", "ds002", "ds002", "ds002", "ds002", "ds002", "ds0

Re: [R] Creating tiff with 1200 dpi

2012-10-03 Thread David Winsemius
On Oct 3, 2012, at 11:52 AM, David Winsemius wrote: > > On Oct 3, 2012, at 11:05 AM, Sheppard,Jennifer [Sas] wrote: > >> Hi all, >> >> I am trying to create images in R suitable for journal publication. I'd >> like to make an image that is 3.6" wide and 5.08" length, and 1200 dpi. >> When I c

Re: [R] Creating tiff with 1200 dpi

2012-10-03 Thread David Winsemius
On Oct 3, 2012, at 11:05 AM, Sheppard,Jennifer [Sas] wrote: > Hi all, > > I am trying to create images in R suitable for journal publication. I'd > like to make an image that is 3.6" wide and 5.08" length, and 1200 dpi. > When I create a tiff file that is 800 dpi and 4x4", it works (although >

[R] Error in if (any(ch)) { : missing value where TRUE/FALSE needed

2012-10-03 Thread liang . che
Can someone please help with the error message below? thanks! Start: AIC=-Inf value ~ 1 + Core_CPI__ + GDP_change + Unemployment + housing + interest + S_P + d1 + d2 + d3 Error in if (any(ch)) { : missing value where TRUE/FALSE needed In addition: Warning message: attempting model select

[R] Creating tiff with 1200 dpi

2012-10-03 Thread Sheppard,Jennifer [Sas]
Hi all, I am trying to create images in R suitable for journal publication. I'd like to make an image that is 3.6" wide and 5.08" length, and 1200 dpi. When I create a tiff file that is 800 dpi and 4x4", it works (although doesn't look good). But when I create a tiff that is the size and dpi I wa

Re: [R] "options" in R

2012-10-03 Thread Bhupendrasinh Thakre
Sys.time() Regarding changing time zones you may want to search for POSIXct Best Regards, Bhupendrasinh Thakre Sent from my iPhone On Oct 3, 2012, at 1:00 PM, Santosh wrote: > Dear Rxperts, > Was wondering if there is any function in R similar to > options("time.zone"): found in S-Plus that ca

Re: [R] "options" in R

2012-10-03 Thread Uwe Ligges
On 03.10.2012 20:00, Santosh wrote: Dear Rxperts, Was wondering if there is any function in R similar to options("time.zone"): found in S-Plus that can help in looking at the default timezone settings.. Sys.timezone() Uwe Ligges Thanks much, Santosh [ [[alternative HTML version

Re: [R] stepAIC in R

2012-10-03 Thread Uwe Ligges
On 03.10.2012 19:48, liang@us.pwc.com wrote: My stepAIC function works for one set of data but not anotherone set of data shows the steps of eliminating variables, versus another set of data doesn't throw away any variables. Can anyone please explain why? Without data nor output? No.

Re: [R] how can I adjust the ranges of my y-axis in barplot?

2012-10-03 Thread Uwe Ligges
On 03.10.2012 19:50, Yakamu Yakamu wrote: Hi all, I am making 2 barplots with 3 different bars inside with command : bar.wdHo<-barplot(wdHo.mean, names=c(""), cex.lab=1.0, cex.axis=1, cex.names=1, ylim=c(0,15), xlab="", ylab=expression(paste("Thickness (mm"^{2},")")), density=c(0,27,200), col

Re: [R] will 9 data points work for a regression in R?

2012-10-03 Thread Uwe Ligges
On 03.10.2012 19:58, liang@us.pwc.com wrote: See error message below: can someone please help with this? Thanks! Residuals: ALL 9 residuals are 0: no residual degrees of freedom! Residual standard error: NaN on 0 degrees of freedom Multiple R-squared: 1, Adjusted R-squared: N

Re: [R] how can I adjust the ranges of my y-axis in barplot?

2012-10-03 Thread Sarah Goslee
Hi, It sounds to me like you want to change the location of the tick marks rather than the axis range (which you've already done). For that see ?axis and its various options for placement and labeling and the yaxt option under ?par to suppress the default axis labels. Sarah On Wed, Oct 3, 2012 a

Re: [R] ffsave problems

2012-10-03 Thread Uwe Ligges
On 02.10.2012 21:55, Lucas Chaparro wrote: Dear R friends. After having some troubles learning how to create a ffdf object, now I find myself having problems saving it. this is the data i´d like to save: str(DATA) List of 3 $ virtual: 'data.frame': 6 obs. of 7 variables: .. $ VirtualVmode

[R] will 9 data points work for a regression in R?

2012-10-03 Thread liang . che
See error message below: can someone please help with this? Thanks! Residuals: ALL 9 residuals are 0: no residual degrees of freedom! Residual standard error: NaN on 0 degrees of freedom Multiple R-squared: 1, Adjusted R-squared: NaN F-statistic: NaN on 8 and 0 DF, p-value: NA

[R] stepAIC in R

2012-10-03 Thread liang . che
My stepAIC function works for one set of data but not anotherone set of data shows the steps of eliminating variables, versus another set of data doesn't throw away any variables. Can anyone please explain why? Thanks __ T

Re: [R] predict.lm if regression vector is longer than predicton vector

2012-10-03 Thread Greg Snow
The most common case that I see that error is when someone fits their model using syntax like: fit <- lm( mydata$y ~ mydata$x ) instead of the preferred method: fit <- lm( y ~ x, data=mydata ) The fix (if this is what you did and why you are getting the error) is to not use the first way and in

Re: [R] (no subject)

2012-10-03 Thread John Kane
I have copied this to the R-help list. You only repied to me and it is much likelier that you will get help if it is posted to the list. In relpying you should generally use reply all rather than reply in posting. I still don't quite see what you are trying to get. Most of the ID and reponse

[R] how can I adjust the ranges of my y-axis in barplot?

2012-10-03 Thread Yakamu Yakamu
Hi all, I am making 2 barplots with 3 different bars inside with command :   bar.wdHo<-barplot(wdHo.mean, names=c(""), cex.lab=1.0, cex.axis=1, cex.names=1, ylim=c(0,15), xlab="", ylab=expression(paste("Thickness (mm"^{2},")")), density=c(0,27,200), col=c("grey90","black","grey"), beside=TRUE, ax

Re: [R] i would like to unsubscribe. How do i do this?

2012-10-03 Thread Sarah Goslee
https://stat.ethz.ch/mailman/listinfo/r-help On Wed, Oct 3, 2012 at 1:39 PM, tony toca wrote: > See below. > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.

[R] i would like to unsubscribe. How do i do this?

2012-10-03 Thread tony toca
[[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,

Re: [R] help: ks test fit Poisson-ness (D and p) with one sample data

2012-10-03 Thread Rui Barradas
Hello, Homework? We don't do homework. Why do you want the ks test and not, say, a chi-squared test? Tips: 1)ks is for contiuous data and 2) who told you this comes from a poisson population if it doesn't really seem so? Hope this helps, Rui Barradas Em 03-10-2012 05:30, yang ji escreveu: f

[R] optimize and mcparallel problem

2012-10-03 Thread Matthew Wolak
Dear list, I am running into 2 problems when using the optimize function from the stats package (note: I've also tried unsuccessfully to use optim, nlm, & nlminb). The second problem is caused by my solution to the first, so I am asking if anyone has a better solution to the first question, or i

Re: [R] Difficulties in trying to do a mixed effects model using the lmer function

2012-10-03 Thread Bert Gunter
Please post this on the r-sig-mixed-models list, not here. You are waayyy more likely to get useful help there. Also this is primarily a statistics, not an R issue. You may wish to consider consulting with your local statistician to help you understand the statistics. Cheers, Bert On Wed, Oct 3

Re: [R] Errors when saving output from WinBUGS to R

2012-10-03 Thread Uwe Ligges
On 03.10.2012 17:51, yiyiwang wrote: Dear all I used R2WinBUGS package's bugs() function to generate MCMC results. Then I tried to save the simulation draws in R, using read.bugs() function. Here is a simple test: ## library(coda) library(R2WinBUGS) #fake some data to test

Re: [R] Efficient Way to gather data from various files

2012-10-03 Thread Sam Asin
Thanks, both of you, this is really helpful! Rui, this is a very neat, clear, and effective way to do what I need to do. It is essentially the same idea that I was trying to do with a for loop, but instead with a function, obviously. I really appreciate the additional functions that you taught m

[R] Difficulties in trying to do a mixed effects model using the lmer function

2012-10-03 Thread Riedel Judith
Dear people of the help list I am drying to analyze my data using the 'lmer' function and I keep having problems. This is the model: > fm1<-lmer(dbh~spec+scheme+(1|Plot),data=d, REML=FALSE). I analyse tree size (dbh) of 3 different species (spec) and 3 planting schemes (scheme). I have 5 plo

Re: [R] error bars on line plot with error bars using ggplot

2012-10-03 Thread S Ellison
> I'm new to this and struggling away with ggplot. I need to > plot some line graphs for about 4 series. I have the values > to plot and also the value of the standard error of the > value. Is it possible to plot the standard error bars when > the value are already calculated as opposed to

Re: [R] predict.lm if regression vector is longer than predicton vector

2012-10-03 Thread William Dunlap
This can happen if your newdata data.frame does not include all the predictors required by the formula in the model. In that case predict will look in the current evaluation environment to find the missing predictors, and those will generally not match what is in your newdata. E.g., > x1 <- 1:6

Re: [R] How to limit memory on a server

2012-10-03 Thread Duncan Murdoch
On 03/10/2012 11:07 AM, Hervy Cyril wrote: My OS is a 64-bit Windows Server 2008 SP2 and I have a sysadmin account on the server. Sounds like it's a question for Microsoft (or their web site) then. You might want to start here: http://technet.microsoft.com/en-us/library/cc753446.aspx Dunca

Re: [R] error bars on line plot with error bars using ggplot

2012-10-03 Thread David Winsemius
On Oct 3, 2012, at 6:41 AM, James Maas (MED) wrote: > I'm new to this and struggling away with ggplot. I need to plot some line > graphs for about 4 series. I have the values to plot and also the value of > the standard error of the value. Is it possible to plot the standard error > bars w

[R] System/SUR equations and panel

2012-10-03 Thread Alok K Bohara, PhD
Hi: I was wondering if there is any R package to estimate a two-or three equation system in a panel setting. Say, I have 100 firms and their expenditure on wind generated power and solar-generated power. S_i = X1_i*b1 + u1_i W_i = X2_i* b2 + u2_i (X1 and X2 need not be the same.. but for s

Re: [R] Regarding licensing Terms

2012-10-03 Thread Hadley Wickham
> Most critical issues vis-a-vis open source licenses come into play when you > cross the line from simply being a user/developer to copying and > distributing. In the latter case, whether you plan to charge for the > resultant product or make it available for free, is irrelevant. I think the m

Re: [R] How to limit memory on a server

2012-10-03 Thread Prof Brian Ripley
On 03/10/2012 16:12, Hervy Cyril wrote: My OS is a 64-bit Windows Server 2008 SP2 and I would like to limit RAM usage on the server. Ask your sysadmins, as Duncan Murdoch advised. R only know about virtual memory usage, not RAM usage. Thank you. Best regards Cyril Hervy -Message d'

Re: [R] How to limit memory on a server

2012-10-03 Thread Hervy Cyril
My OS is a 64-bit Windows Server 2008 SP2 and I have a sysadmin account on the server. Thank you. Best regards Cyril Hervy -Message d'origine- De : Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Envoyé : mercredi 3 octobre 2012 15:39 À : Hervy Cyril Cc : R-help (r-help@r-project.org

[R] How to draw a graph after model selection?

2012-10-03 Thread ahbu
I am very new to R and I basically used SPSS to do my model selection, which I had used generalized linear model. So my best model is P= D + T + L + T*L and there is a parameters table from the SPSS output which I suppose I have to use the coefficients (column B) in the table (as attached) when I

Re: [R] How to limit memory on a server

2012-10-03 Thread Hervy Cyril
My OS is a 64-bit Windows Server 2008 SP2 and I would like to limit RAM usage on the server. Thank you. Best regards Cyril Hervy -Message d'origine- De : Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] Envoyé : mercredi 3 octobre 2012 15:43 À : Hervy Cyril Cc : R-help (r-help@r-proje

[R] error bars on line plot with error bars using ggplot

2012-10-03 Thread James Maas (MED)
I'm new to this and struggling away with ggplot. I need to plot some line graphs for about 4 series. I have the values to plot and also the value of the standard error of the value. Is it possible to plot the standard error bars when the value are already calculated as opposed to letting R d

[R] Debug newbie

2012-10-03 Thread Ana Richardson
Hi! I'm trying to debug the cosmo R package because I'm trying to find out where all the motifs are. I display some of them printing the "motif" variable but I don't know how to show all of the found motifs in one run. http://www.bioconductor.org/packages/2.10/bioc/html/cosmo.html I think that th

Re: [R] predict.lm if regression vector is longer than predicton vector

2012-10-03 Thread S Ellison
> Of course I can extend the new dataframe with a few thousands > NAs, but is there a more elegant solution? That should not be necessary: predict.lm should work on any number of newdata rows, whether longer or shorter than the original data set. However, the help page for predict.lm says (among

Re: [R] Regarding licensing Terms

2012-10-03 Thread Marc Schwartz
On Oct 3, 2012, at 9:56 AM, Spencer Graves wrote: > On 10/3/2012 7:26 AM, Marc Schwartz wrote: >> On Oct 3, 2012, at 4:49 AM, Narendra wrote: >> >>> Hi, >>> >>> I have developed one application using ggmap package.It is based on google >>> map. >>> I am a bit confused regarding its licensing

Re: [R] Regarding licensing Terms

2012-10-03 Thread Spencer Graves
On 10/3/2012 7:26 AM, Marc Schwartz wrote: On Oct 3, 2012, at 4:49 AM, Narendra wrote: Hi, I have developed one application using ggmap package.It is based on google map. I am a bit confused regarding its licensing terms.I want to know that can i use it with my other applications. Is it legal

[R] predict.lm if regression vector is longer than predicton vector

2012-10-03 Thread frauke
Hi everybody, recently a member of the community pointed me to the useful predict.lm() comment. While I was toying with it, I stumbled across the following problem. I do the regression with data from five years. But I want to do a prediction with predict.lm for only one year. Thus my dataframe f

Re: [R] Regarding licensing Terms

2012-10-03 Thread Marc Schwartz
On Oct 3, 2012, at 4:49 AM, Narendra wrote: > Hi, > > I have developed one application using ggmap package.It is based on google > map. > I am a bit confused regarding its licensing terms.I want to know that can i > use it with my other applications. > Is it legal? In the case of a third part

Re: [R] Parametric effects in GAM

2012-10-03 Thread Petar Milin
On Wed, 2012-10-03 at 12:09 +0100, Simon Wood wrote: > If b is a fitted gam object... >plot(b,all.terms=TRUE) > --- see ?plot.gam Many thanks for your answer! But the problem is not as simple. My model has one te(), and two parametric interactions: two numeric variables whose effects are changi

Re: [R] How to add a new row in to an existing data set in R Language?

2012-10-03 Thread Ista Zahn
Hi, Have you read the documentation for merge? The relevant section says " If 'all.x' is true, all the non matching cases of 'x' are appended to the result as well, with 'NA' filled in the corresponding columns of 'y'; analogously for 'all.y'." Please do get in the habit of reading

Re: [R] How to limit memory on a server

2012-10-03 Thread Duncan Murdoch
On 03/10/2012 5:12 AM, Hervy Cyril wrote: Hello, In our structure, users connect to a server (64GB of memory) where they launch R. How can I limit the amount of RAM that could use a user. The function memory.limit(size=...) can limit the amount of memory but I would like users can't change this

Re: [R] How to limit memory on a server

2012-10-03 Thread Prof Brian Ripley
And your OS is? See the footer and the 'at a minimum' information the posting guide asks for. I think you are confusing 'memory' and 'RAM': the two concepts are distinct. But R is not a special case, and you do it the same way as you do this for any other process, by your OS facilities. On

Re: [R] Problem with mutli-dimensional array

2012-10-03 Thread Rui Barradas
Hello, I'm glad it helped. Now you have what is a data structure problem. The computations are the same but in a different output. First of all a terminology issue. In R the correct names for the data structures you've refered to are 'list', 'matrix' and 'array'. To make it short, vector -

[R] error in Deducer in 1-m: m is missing

2012-10-03 Thread sohohubby
I have two macs both running OS 10.6.8. One has JGR 1.7-9 and the other 1.7-11. When I run 'descriptives' from the analysis menu on the same data set on both machines. It runs as expected on 1.7-9 but give the error message in the header in version 1.7-11. Other analysis procedures seem to run

Re: [R] sorting dataframe

2012-10-03 Thread killerkarthick
Please show the data set... -- View this message in context: http://r.789695.n4.nabble.com/sorting-dataframe-tp840507p4644857.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list h

[R] How to add a new row in to an existing data set in R Language?

2012-10-03 Thread killerkarthick
Hi... I have one 2 data set with 3 variables and 4 observations. I want to combine the two data sets. I tried with merge but it gives only the common values. I need common values and and remaining values also. Please help me? this is my data set dataset:1 nameva1 va2 AA 10 100 BB

Re: [R] Error Installing Package with Dependency on "Matrix"

2012-10-03 Thread chrisl
I had the same problem by trying to install the mgcv package. The problem came from the Matrix package library(Matrix) => same error as yours I have reinstalled the Matrix package, now everything work fines best chris -- View this message in context: http://r.789695.n4.nabble.com/Error-Inst

[R] How to limit memory on a server

2012-10-03 Thread Hervy Cyril
Hello, In our structure, users connect to a server (64GB of memory) where they launch R. How can I limit the amount of RAM that could use a user. The function memory.limit(size=...) can limit the amount of memory but I would like users can't change this option in R. Is it possible? Thank you. Cy

Re: [R] Problem with mutli-dimensional array

2012-10-03 Thread Loukia Spineli
Thank you very much for your suggestions. They both worked! Actually I am trying to make an array of length 7, where each array contains a different number of 2 by 2 matrices. The vector "n" defines the different number of matrices across the arrays. Therefore, the parameter "l" has to change in e

[R] V4Error in factor(x[, type == (-2)]

2012-10-03 Thread ya
Dear list, I am trying to impute the missing values for the first level variables in a two level data set using MICE package. Here is my code and error I got: > aa=mice(a,maxit=0) > aaa=aa$pred > aaa V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V1 0 0 0 0 0 0 0 0 0 0 V2 0 0 0 0 0 0 0

[R] Regarding licensing Terms

2012-10-03 Thread Narendra
Hi, I have developed one application using ggmap package.It is based on google map. I am a bit confused regarding its licensing terms.I want to know that can i use it with my other applications. Is it legal? -- With Regards, Narendra Pratap Principal Research Developer Hitech Robotic Systemz Lt

Re: [R] Random Forest - Extract

2012-10-03 Thread Liaw, Andy
1. Not sure what you want. What "details" are you looking for exactly? If you call predict(trainset) without the newdata argument, you will get the (out-of-bag) prediction of the training set, which is exactly the "predicted" component of the RF object. 2. If you set type="votes" and norm.v

Re: [R] Tendonitis and R users

2012-10-03 Thread pmulonge
Thank you so much for the advice, the cordless trackball has made a world of difference, as well as the streches and the R package that tells you one take a break. -- View this message in context: http://r.789695.n4.nabble.com/Tendonitis-and-R-users-tp4642160p4644861.html Sent from the R help m

[R] Get Cran R to use system proxy settings

2012-10-03 Thread Sachinthaka Abeywardana
Hi all, I am using Ubuntu and I am having quite a bit of difficulty trying to get R to use the system proxy settings. Any suggestions? Thanks, Sachin __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the p

Re: [R] distinguishing input objects for a function

2012-10-03 Thread Duncan Murdoch
On 12-10-03 1:59 AM, ishi soichi wrote: platform x86_64-apple-darwin9.8.0 arch x86_64 os darwin9.8.0 system x86_64, darwin9.8.0 version.string R version 2.13.1 (2011-07-08) I am trying to write a function that takes a few objects as input. test <- function(di

[R] [R-pkgs] New package: logmult (log-multiplicative models)

2012-10-03 Thread Milan Bouchet-Valat
This is a wrapper around gnm by Turner and Firth to make fitting log-multiplicative models as convenient as possible: it provides simple functions, good starting values, jackknife or bootstrap standard errors, and direct plotting of the results. In addition, it makes it possible to identify scores