Re: [R] setting constraints on gam

2018-01-12 Thread Alejandra MartĂ­nez Blancas
Thanks Simon, by cloning a smooth construct do you mean copying and modifying the smooth constructor code? Could you pleas elaborate on your answer? Which is the Predict.matrix method? 2018-01-12 3:20 GMT-06:00 Simon Wood : > There probably is a way, but it involves some programming. You would nee

Re: [R] Help with packages (methods, stats, stats4)

2018-01-12 Thread David Winsemius
> On Jan 12, 2018, at 12:01 PM, Duncan Murdoch wrote: > > On 12/01/2018 1:25 PM, Karim Mezhoud wrote: >> Yes, >> You are right. I mean >> install.packages('DVstats'). > > That won't work either, because DVstats is not on CRAN. > >> Actually, it seems that DVstats does not have maintainer >> ht

Re: [R] Help with packages (methods, stats, stats4)

2018-01-12 Thread Duncan Murdoch
On 12/01/2018 1:25 PM, Karim Mezhoud wrote: Yes, You are right. I mean install.packages('DVstats'). That won't work either, because DVstats is not on CRAN. Actually, it seems that DVstats does not have maintainer https://github.com/USGS-R/DVstats You can try install.packages("devtools") #

Re: [R] R minor version

2018-01-12 Thread Henrik Bengtsson
This can be controlled by environment variables R_LIBS, R_LIBS_SITE, and R_LIBS_USER, which support "conversion specifiers". See help(".libPaths") or aliases help("R_LIBS") etc. You can set these in in any of the Renviron files (~/.Renviron, /path/to/R/etc/Renviron, /path/to/R/etc/Renviron.site).

Re: [R] glm$effects

2018-01-12 Thread Bert Gunter
See ?effects Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Jan 12, 2018 at 10:44 AM, Cade, Brian wrote: > I know I must be missing somet

[R] glm$effects

2018-01-12 Thread Cade, Brian
I know I must be missing something obvious, but checking help and googling a bit did not turn up a useable answer. When I've estimated a glm() model object (my example is with just identity link with gaussian family so I could have used lm() instead), one of the terms returned in the model object

Re: [R] Help with packages (methods, stats, stats4)

2018-01-12 Thread Karim Mezhoud
Yes, You are right. I mean install.packages('DVstats'). Actually, it seems that DVstats does not have maintainer https://github.com/USGS-R/DVstats Karim On Fri, Jan 12, 2018 at 7:20 PM, Duncan Murdoch wrote: > On 12/01/2018 1:11 PM, Karim Mezhoud wrote: > >> Hi, >> Did you try install.packages('

Re: [R] Help with packages (methods, stats, stats4)

2018-01-12 Thread Duncan Murdoch
On 12/01/2018 1:11 PM, Karim Mezhoud wrote: Hi, Did you try install.packages('stats'). That will not work, as stats is a base package. It comes with R, and can't be changed. The stats package should never be missing in a proper install of R. Duncan Murdoch Let we know about your Sys.i

Re: [R] Help with packages (methods, stats, stats4)

2018-01-12 Thread Karim Mezhoud
Hi, Did you try install.packages('stats'). Let we know about your Sys.info() Karim On Fri, Jan 12, 2018 at 5:37 PM, imane hajar wrote: > hello , > > i am so sorry , i figure it out. > > im sending this msj to the moderator to stop the approval of the mail . > > have a good day. > > > 2018-01-1

Re: [R] Help with packages (methods, stats, stats4)

2018-01-12 Thread imane hajar
hello , i am so sorry , i figure it out. im sending this msj to the moderator to stop the approval of the mail . have a good day. 2018-01-12 15:42 GMT+00:00 imane hajar : > hello, > Can you please give me a hand with this problem,well i can't install > these packages: > - stats > - methods >

Re: [R] Help with packages (methods, stats, stats4)

2018-01-12 Thread Bert Gunter
1. Unless there is a good reason not to, please always cc the list. As you note, I may misunderstand or just be too stupid, so you increase your chance of getting a good answer by ccing them, which I have done here 2. It looks like you need to install the multcomp package. Have you? Cheers, Bert

Re: [R] Help with packages (methods, stats, stats4)

2018-01-12 Thread Bert Gunter
There appears to be a lot here that you don't understand, and a little reading woud be a better way for you to resolve your confusion I believe. Read Section 6 of the "R Installation and Administration" manual that ships with R. There you will find that the stats and methods packages are already in

Re: [R] Help with packages (methods, stats, stats4)

2018-01-12 Thread Duncan Murdoch
On 12/01/2018 10:42 AM, imane hajar wrote: hello, Can you please give me a hand with this problem,well i can't install these packages: - stats - methods - stats4 Those are all base packages which are part of R. If you have R, you have them. They can't be updated without updating all of R.

Re: [R] R minor version

2018-01-12 Thread William Dunlap via R-help
> .expand_R_libs_env_var("poof/%p/%v") [1] "poof/x86_64-w64-mingw32/3.4" Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Jan 12, 2018 at 4:49 AM, Loris Bennett wrote: > Hi, > > When I install a package as a non-root user, it gets saved in a path > such as > > ~/R/x86_64-unknown-linux-g

[R] Help with packages (methods, stats, stats4)

2018-01-12 Thread imane hajar
hello, Can you please give me a hand with this problem,well i can't install these packages: - stats - methods - stats4 when i tried the following command : *library(help = "stats") * , it gave me this output (*see picture*), so i contacted the Maintainer of the package at (*r-c...@r-project.org *

[R] R minor version

2018-01-12 Thread Loris Bennett
Hi, When I install a package as a non-root user, it gets saved in a path such as ~/R/x86_64-unknown-linux-gnu-library/3.4 for any R version 3.4.x. Thus, if I want to install the packages somewhere else, as root say, I might do install.packages("somepackage","/some/where/else/R/site-library

Re: [R] application of R

2018-01-12 Thread peter dalgaard
In the (approximate) words of Ross Ihaka: R could have been made commercial and then it might have had like 500 users instead of millions. Programming language aside, there isn't really much of a market for new, closed source, statistical programs, at least not unless you get to a level of soph

Re: [R] setting constraints on gam

2018-01-12 Thread Simon Wood
There probably is a way, but it involves some programming. You would need to clone a smooth constructor (e.g. for the "cr" class), and then modify it to add a linear constraint matrix C to the returned smooth object. If b are the smooth coefficients then C should  be the matrix such that s(0) =