Re: [R] Bootstrapped Regression

2017-10-14 Thread Janh Anni
Hello Rui, Thanks for your helpful suggestions. Just for illustration, let's use the well known Duncan dataset of prestige vs education + income that is contained in the "car" package. Suppose I wish to use boot function to bootstrap a linear regression of prestige ~ education + income and use t

Re: [R] Bootstrapped Regression

2017-10-14 Thread Rui Barradas
Hello, Give us a dataset example. If your dataset is named x post the output of dput(head(x, 20)) And post the code you are running for the regression. What have you tried? The help page for function boot has an example of generelized linear regression (nuke.boot) that you might adapt to your

Re: [R] make check Error: could not get timezone

2017-10-14 Thread Jeff Newmiller
Your confusion would be alleviated if you read the whole thing. E.g. Questions likely to prompt discussion unintelligible to non-programmers should rather go to R-devel than R-help. [...] For example, questions involving C, C++, etc. code should go to R-devel. It is unfortunate that the errors

Re: [R] Populate one data frame with values from another dataframe for rows that match

2017-10-14 Thread William Dunlap via R-help
Your example used one distinct studyno in DF1 and one distinct pf_mcl in DF2. I think that makes it hard to see what is going on, but maybe I completely misunderstand the problem. In any case, let's redefine myDF1 and myDF2. Note that myDF1 contains a studyno not in myDF2 and vice versa. myDF1

Re: [R] Bootstrapped Regression

2017-10-14 Thread Bert Gunter
R-help is not a free coding service. We expect users to make the effort to learn R and *may* provide help when they get stuck. Pay a local R programmer if you do not wish to make such an effort. Cheers, Bert On Oct 14, 2017 7:58 AM, "Janh Anni" wrote: Greetings! We are trying to obtain confid

[R] Bootstrapped Regression

2017-10-14 Thread Janh Anni
Greetings! We are trying to obtain confidence and prediction intervals for a predicted Y value from bootstrapped linear regression using the boot function. Does anyone know how to code it? Greatly appreciated. Janh [[alternative HTML version deleted]] __

Re: [R] make check Error: could not get timezone

2017-10-14 Thread Stephen Berman
On Sat, 14 Oct 2017 11:49:16 +0100 Jeff Newmiller wrote: > Off topic. Read the Posting Guide. I did do that before posting; the choice seemed to be between R-help ("intended to be comprehensible to people who want to use R to solve problems but who are not necessarily interested in or knowledge

Re: [R] make check Error: could not get timezone

2017-10-14 Thread Jeff Newmiller
Off topic. Read the Posting Guide. -- Sent from my phone. Please excuse my brevity. On October 14, 2017 11:02:50 AM GMT+01:00, Stephen Berman wrote: >On Fri, 13 Oct 2017 22:36:48 +0200 Stephen Berman > wrote: > >> I just built the latest R-patched from source (SVN-Revision: 73548, >Last >> Chan

Re: [R] Populate one data frame with values from another dataframe for rows that match

2017-10-14 Thread Kevin Wamae
Dear @Eric, thank you so very much for noticing that. When I tested @Rui’s solution, it was on a smaller dataset that had purely matching rows. I had considered including non-matching rows to evaluate what the alternative would be. Also

Re: [R] make check Error: could not get timezone

2017-10-14 Thread Stephen Berman
On Fri, 13 Oct 2017 22:36:48 +0200 Stephen Berman wrote: > I just built the latest R-patched from source (SVN-Revision: 73548, Last > Changed Date: 2017-10-12) and the build completed without a problem but > `make check' errored out: > > running code in 'reg-tests-1d.R' ...make[3]: *** [Makefi

Re: [R] Populate one data frame with values from another dataframe for rows that match

2017-10-14 Thread Eric Berger
Hi Kevin, I think there are issues with Rui's proposed solution. For example, if there are rows in myDF1 which have a studyno which does not match any row in myDF2, then you will lose those rows. In your original request you said that you wanted to keep those rows. To demonstrate my point I need t