Re: [R] unable to move temporary installation of package

2018-03-26 Thread Jeff Newmiller
Perhaps someone here will see something useful if you post the output of the following function calls: sessionInfo() .libPaths() file.info(.libPaths()) and the verbatim (copied) error (in context) that you are seeing. -- Sent from my phone. Please excuse my brevity. On March 26, 2018 6:27:10

Re: [R] selectFGR vs weighted coxph for internal validation and calibration curve- competing risks model

2018-03-26 Thread Ronald Geskus
Dear Raja, I don't know of any out-of-the-box function to perform internal validation with a Fine & Gray model. My suggestion is to tweak the validate.cph function from the rms package. Within that function, you will need to incorporate the crprep or finegray function to compute the weights and th

Re: [R] unable to move temporary installation of package

2018-03-26 Thread Paul Lantos
Thanks Jeff, So I initially when I got the computer moved my old packages into the new directory rather than downloading and installing them again. That was fine. I then just did a test to see if I could write in the folder and indeed I can. Just not via R. I uninstalled R Open, installed R

Re: [R] unable to move temporary installation of package

2018-03-26 Thread Jeff Newmiller
A) Don't try to "move" packages from one library (=directory of installed packages) to another. B) Although R Open is very close to CRAN R, it has some differences that you REALLY NEED TO READ about at their website. Pay particular attention to the checkpoint feature in this case. Note that tr

[R] unable to move temporary installation of package

2018-03-26 Thread Paul Lantos
I'm running Windows 10 / R Studio / R Open 3.4.3 Since getting a new computer recently I cannot install packages into my personal libpath directory, and I can't seem to update packages (it says all packages are up to date even if I manually install an old version). I've got 100% admin rights

[R] Using R and the Tidyverse for an economic model

2018-03-26 Thread Jocelyn Ireson-Paine via R-help
I've been translating an economic model from Python into R, and I thought members of the list would like to see a presentation I've written about it. I've blogged this at http://www.j-paine.org/blog/2018/03/r-taxben-a-microsimulation-economic-model-in-r.html , and the presentation itself is a slide

Re: [R] Take average of previous weeks

2018-03-26 Thread Bert Gunter
The row means **are** new variables and can be put wherever you like. But all columns in a data frame **must** have the same number of rows, so you'll have to fill in missing values as appropriate. That's where you need to "adjust as necessary to your needs." -- Bert Bert Gunter "The trouble w

Re: [R] Take average of previous weeks

2018-03-26 Thread Miluji Sb
Dear Bert, Thank you very much.This works. I was wondering if the fact that I want to create new variables (sorry for not stating that fact) makes any difference? Thank you again. Sincerely, Milu On Sun, Mar 25, 2018 at 10:05 PM, Bert Gunter wrote: > I am sure that this sort of thing has been

[R] "dlm" Package: Calculating State Confidence Intervals

2018-03-26 Thread Elmously, Ziad (TSHHM)
To Whom It May Concern, I estimated a model with 6 states (3 time-varying Regression parameters and 3 quarterly seasonality trends). The model is saved in the object titled "mod." Following the example in the documentation and using the commands below, I am attempting to use the function "dlmS