[R] Plot prediction for Heckman 2-step (sampleSelection) models after predict.selection

2019-05-13 Thread Syed Rashid Munir
Hi everyone, I'm fairly new to R and I've run into a problem that I can't find a solution for. I'm trying to plot the predicted values of a dependent variable based on specific values of one independent variable after running a Heckit (Heckman 2-step) model from the sampleSelection package. T

Re: [R] converting zipcodes to latitude/longitude

2019-05-13 Thread Jim Lemon
Hi Nicola, Getting the blank rows will be a bit more difficult and I don't see why they should be in the final data frame, so: townzip<-read.table(text="waltham, Massachusetts 02451 Columbia, SC 29209 Wheat Ridge , Colorado 80033 Charlottesville, Virginia 22902 Fairbanks, AK 99709 Montpelier, VT

Re: [R] install pcre

2019-05-13 Thread Jeff Newmiller
Looks like you don't have all of the dev tools installed on your unnamed OS. I highly recommend Googling for how to install R in your OS. Please read the Posting Guide... Discussions about compiling R should be in R-devel. Most people install binaries which would be relevant here. On May 13, 20

[R] install pcre

2019-05-13 Thread yueli
Hello, I am trying to install R. Thanks in advance for any help! Yue checking for pcre.h... yes checking pcre/pcre.h usability... no checking pcre/pcre.h presence... no checking for pcre/pcre.h... no checking if PCRE version >= 8.20, < 10.0 and has UTF-8 support... no checking whether PCRE sup

Re: [R] Trying to understand the magic of lm (Still trying)

2019-05-13 Thread Sorkin, John
Terry , Thank you. Many years ago I took a course you taught in which you explained how to conduct survival analyses using S. The course was very useful, as was the email you sent me today. If you find a place where you can store your lecture notes, please send me the URL. I believe that the

[R] converting zipcodes to latitude/longitude

2019-05-13 Thread Nicola Ruggiero
Hello everyone, I've downloaded Jeffrey Breen's R package "zipcode," which has the latitude and longitude for all of the US zip codes. So, this is a data.frame with 43,191 observations. That's one data frame in my environment. Then, I have another data.frame with over 100,000 observations that lo

Re: [R] Error message when adding drift for Arima model

2019-05-13 Thread Michael Howell
Yes that is a little off topic but I will look into it more. Thank you very much for your help. Michael On Mon, May 13, 2019 at 11:33 AM Rui Barradas wrote: > Hello, > > Sorry for the late reply. > Inline. > > Às 17:54 de 10/05/19, Michael Howell escreveu: > > Rui, > > I'm still new to ARIMA fo

Re: [R] Error message when adding drift for Arima model

2019-05-13 Thread Rui Barradas
Hello, Sorry for the late reply. Inline. Às 17:54 de 10/05/19, Michael Howell escreveu: Rui, I'm still new to ARIMA forecasting but I examined the PACF and saw significant correlation at lag 2. You saw a PACF with a significant correlation at lag 2 but not at lag 1. When this happens, it m

Re: [R] linear model contrast in R

2019-05-13 Thread Richard M. Heiberger
I think you might be looking for ?contrasts to form the contrast matrix. Rich On Mon, May 13, 2019 at 7:31 AM Witold E Wolski wrote: > > I am looking for a function to compute contrasts with a interface > similar to that of > > lmerTest::contest > multcomp::glht > > i.e. taking the model and a c

Re: [R] Trying to understand the magic of lm (Still trying)

2019-05-13 Thread Therneau, Terry M., Ph.D. via R-help
John,  The text below is cut out of a "how to write a package" course I gave at the R conference in Vanderbilt.   I need to find a home for the course notes, because it had a lot of tidbits that are not well explained in the R documentation. Terry T. Model frames: One of the first task

[R] linear model contrast in R

2019-05-13 Thread Witold E Wolski
I am looking for a function to compute contrasts with a interface similar to that of lmerTest::contest multcomp::glht i.e. taking the model and a contrast vector or matrix as an argument, but for linear models, and without the multiple testing adjusted made by multcomp::glht. Thank you -- Wit