Re: [R] Error with predict and newdata

2015-08-07 Thread David Winsemius
On Aug 7, 2015, at 2:41 PM, kira taylor wrote: > Hi! > > I am trying to use predict to apply my model to data from one time period to > see what might be the values for another time period. I did this > successfully for one dataset, and then tried on another with identical code > and got the fo

Re: [R] Piecewise (segmented) linear regression with center section slope constraint

2015-08-07 Thread David Winsemius
On Aug 7, 2015, at 12:05 PM, Drew Morrison wrote: > Thanks, Jean. I've actually looked at that source before. The issue is that I > can't constrain the slope of the /center/ section to be zero - in fact, I've > applied similar code to a three-segment regression and I can get a zero > slope either

[R] Cant upgrade R in ubuntu 14.04

2015-08-07 Thread boredstoog via R-help
I am trying to install R programming language and able to install rbase using this code without adding repository in *source.list* sudo apt-get install r-base After that i tried to upgrade it using this code sudo add-apt-repository ‘deb http://star-www.st-andrews.ac.uk/cran/bin/linux/ubuntu/tru

Re: [R] creating a funct

2015-08-07 Thread Jeff Newmiller
I think the readers of this mailing list would have to be psychic to know what went wrong given that description. This kind of situation usually requires in-person help, so I recommend looking for an educational environment that offers such assistance... a seminar, university class, tutor, or us

[R] creating a funct

2015-08-07 Thread Jose Betancourt B.
Dear i am develeping a function, first I attach r command and later r executer script, the conection fails and I do not realize why best regards 100 38 1 80 19 5 90 31 2 70 21 6 85 30 3 75 22 5 99 37 1 100 38 1 80

[R] Error with predict and newdata

2015-08-07 Thread kira taylor
Hi! I am trying to use predict to apply my model to data from one time period to see what might be the values for another time period. I did this successfully for one dataset, and then tried on another with identical code and got the following error: Error in eval(predvars, data, env) : numeri

[R] TVP-ECM modelling in R

2015-08-07 Thread mrrox
Hello, I want to estimate a TVP-ECM model in R. Is there a specific package in R that can handle TVP-ECM models? Thank you -- View this message in context: http://r.789695.n4.nabble.com/TVP-ECM-modelling-in-R-tp4710874.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Piecewise (segmented) linear regression with center section slope constraint

2015-08-07 Thread Drew Morrison
Thanks, Jean. I've actually looked at that source before. The issue is that I can't constrain the slope of the /center/ section to be zero - in fact, I've applied similar code to a three-segment regression and I can get a zero slope either of the two sides, but not in the middle. Here's a list of

Re: [R] Why does R start in wrong working directory despite R_USER setting?

2015-08-07 Thread Jim Lemon
Hi Mauricio, You can also run a directory selection file by including something like this: source("SelectAnalysis.R") in the .First function (see "An Introduction to R", section 10.8 Customizing the environment). Mine currently looks like this: cat("(A)custudy\n(I)nterval analysis\n(O)mbo mappin

Re: [R] compare grupos dichotomus dependent variable

2015-08-07 Thread Jim Lemon
Hi Aurora, Perhaps what you are seeking is a test of proportions. prop.test(c(sum(men),sum(women)),c(length(men),length(women))) 2-sample test for equality of proportions with continuity correction data: c(sum(men), sum(women)) out of c(length(men), length(women)) X-squared = 1.0378e-30

Re: [R] compare grupos dichotomus dependent variable

2015-08-07 Thread Bert Gunter
What does this have to do with R programming? Bert On Friday, August 7, 2015, AURORA GONZALEZ VIDAL wrote: > Hello everybody. I have a statistics question: > > let's say that I want to compaire answers between men and women to a yes/no > question but I have so much more women than men, then, it

Re: [R] testing whether two character vectors contain (the same) items in the same order

2015-08-07 Thread David Winsemius
On Aug 7, 2015, at 12:22 AM, Federico Calboli wrote: > >> On 7 Aug 2015, at 01:59, Bert Gunter wrote: >> >> Boris: >> >> You may be right, but it seems like esp to me based on the op's >> non-description of likelihood of coming from the same noisy process. My >> response would be: seek loca

Re: [R] help plotting glmm values

2015-08-07 Thread Ben Bolker
Luis Fernando García gmail.com> writes: > > Dear Fellows, > > I´m sorry if my question is very basic, but I'm still new in the field of R > and the GLMM. In future, you might consider posting to r-sig-mixed-mod...@r-project.org instead ... > I have made a following glmm, and I need to plot

Re: [R] Why does R start in wrong working directory despite R_USER setting?

2015-08-07 Thread Jeff Newmiller
Not really a question about R, but you can make a Windows shortcut that sets the directory where you want it. My preference is to start in different working directories depending on which project I am working on. R_USER is not a project directory. One way to do that is to double-click on an RDa

[R] Treemap error - missing value where TRUE/FALSE needed

2015-08-07 Thread Alicia Pérez-Porro
Dear R users, I am trying to generate a treemap using the package Treemap on R and I'm encountering the subsequent error: *Error in if (rec[3] < rec[4]) { : missing value where TRUE/FALSE needed* I did traceback() and I got: *5: pivotSize(numeric(0), c(NA_real_, NA_real_, NA_real_, NA_real_* *

Re: [R] Why does R start in wrong working directory despite R_USER setting?

2015-08-07 Thread Michael Dewey
Assuming you are using the GUI you can use the Properties of the shortcut to tell R where to start. On 07/08/2015 17:31, Mauricio Cornejo via R-help wrote: Hi After launching newly-installed R 3.2.1 (on Windows 7), I run the following two commands: getwd()[1] "C:/ProgramData/Microsoft/Windows

[R] compare grupos dichotomus dependent variable

2015-08-07 Thread AURORA GONZALEZ VIDAL
Hello everybody. I have a statistics question: let's say that I want to compaire answers between men and women to a yes/no question but I have so much more women than men, then, it looks like I cannot use chi squared test. Would it be correct to use U test (or ranked Wilcoxon test)?? What do you t

[R] Why does R start in wrong working directory despite R_USER setting?

2015-08-07 Thread Mauricio Cornejo via R-help
Hi After launching newly-installed R 3.2.1 (on Windows 7), I run the following two commands: > getwd()[1] "C:/ProgramData/Microsoft/Windows/Start Menu/Programs/R" > Sys.getenv('R_USER')[1] "C:\\UsersDocuments" I would like the startup working directory to be that pointed to by R_USER. I don't

Re: [R] fpc package - computing silhouette value returns error

2015-08-07 Thread William Dunlap
help(distcritmulti) says that its 2nd argument is "clustering: vector of integers indicating the clustering" and you supplied the output of hclust, which is not a vector of group identifiers. You can make a group identifier vector from hc with cutree(hc, k=4), where k is the number of groups.

Re: [R] Potencial bug in R.adjust ("holm" method)

2015-08-07 Thread peter dalgaard
On 07 Aug 2015, at 16:20 , Iker Vaquero Alba wrote: > > >Hello, Peter, and thank you for your clarifying reply. Actually, that was > another doubt I had. As I take my data from different files (every "bunch of > 5" values is taken from a different file), I assumed that, if I wanted to >

[R] fpc package - computing silhouette value returns error

2015-08-07 Thread Ziqi Zhang
Hi I am using R to do clustering and compute a number of cluster statistics. Below are my code. I do not understand why I get the error: "Error in summary(silhouette(clustering[ss[[i]]], dx)) : error in evaluating the argument 'object' in selecting a method for function 'summary': Error in ro

Re: [R] Potencial bug in R.adjust ("holm" method)

2015-08-07 Thread Iker Vaquero Alba
   Hello, Peter, and thank you for your clarifying reply. Actually, that was another doubt I had. As I take my data from different files (every "bunch of 5" values is taken from a different file), I assumed that, if I wanted to adjust for the error due to repeated measures, it should be enough

Re: [R] Potencial bug in R.adjust ("holm" method)

2015-08-07 Thread peter dalgaard
On 06 Aug 2015, at 19:20 , Iker Vaquero Alba wrote: >Hello all, >I am doing some Bonferroni correction analyses with R.adjust function. I > have a spreadsheet with 24 columns, each with 5 values. When I use the "holm" > method, it gives me adjusted figures for all the original values e

Re: [R] Piecewise (segmented) linear regression with center section slope constraint

2015-08-07 Thread Adams, Jean
This posting on StackOverflow might be useful to you. http://stackoverflow.com/questions/13810607/in-r-package-segmented-how-could-i-set-the-slope-of-one-of-lines-in-the-model Jean On Thu, Aug 6, 2015 at 3:01 PM, Drew Morrison wrote: > Hi, > > I'm working on a way to predict the electricity con

Re: [R] Potencial bug in R.adjust ("holm" method)

2015-08-07 Thread Uwe Ligges
Please send a reproducible example. Best, Uwe Ligges On 06.08.2015 19:20, Iker Vaquero Alba wrote: Hello all, I am doing some Bonferroni correction analyses with R.adjust function. I have a spreadsheet with 24 columns, each with 5 values. When I use the "holm" method, it gives me adju

Re: [R] testing whether two character vectors contain (the same) items in the same order

2015-08-07 Thread Federico Calboli
> On 7 Aug 2015, at 01:59, Bert Gunter wrote: > > Boris: > > You may be right, but it seems like esp to me based on the op's > non-description of likelihood of coming from the same noisy process. My > response would be: seek local statistical help, as your replies indicate a > good deal of s