I am reading the book An R and S plus companion to Applied Regression and I found this function there. Googling gave me the link [1]. 1. http://svitsrv25.epfl.ch/R-doc/library/car/html/Ask.html On Wed, Jun 22, 2016 at 6:57 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote:> On 22/06/16 13:06, Ashim Kapoor wrote: > >> Dear All, >> >> my details:- >> >>> sessionInfo() >>> >> R version 3.3.0 (2016-05-03) >> Platform: x86_64-pc-linux-gnu (64-bit) >> Running under: Ubuntu 15.10 >> >> locale: >> [1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN >> [4] LC_COLLATE=en_IN LC_MONETARY=en_IN LC_MESSAGES=en_IN >> [7] LC_PAPER=en_IN LC_NAME=C LC_ADDRESS=C >> [10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C >> >> attached base packages: >> [1] stats graphics grDevices utils datasets methods base >> >> other attached packages: >> [1] car_2.1-2 >> >> loaded via a namespace (and not attached): >> [1] Rcpp_0.12.5 lattice_0.20-33 MASS_7.3-43 >> grid_3.3.0 >> [5] nlme_3.1-128 MatrixModels_0.4-1 SparseM_1.7 >> minqa_1.2.4 >> [9] nloptr_1.0.4 Matrix_1.2-6 splines_3.3.0 >> lme4_1.1-12 >> [13] pbkrtest_0.4-6 parallel_3.3.0 mgcv_1.8-7 >> nnet_7.3-10 >> [17] quantreg_5.24 >> >>> >>> >> ## Not run: >>> attach(UN) >>> >>> # enter the power-transformation parameter >>> # start with 1 >>> Ask(p, function(p) qq.plot(box.cox(gdp, p), >>> >> + ylab=paste("transformed gdp, power =",p))) >> Error: could not find function "Ask" >> >>> >>> >> What can I do to correct this? >> > > What led you to believe that such a function exists (in the "car" package > or anywhere else for that matter)? And what exactly do you want it to do > for you? > > cheers, > > Rolf Turner > > -- > Technical Editor ANZJS > Department of Statistics > University of Auckland > Phone: +64-9-373-7599 ext. 88276 >[[alternative HTML version deleted]]
According to the NEWS file for the package: https://cran.r-project.org/web/packages/car/NEWS the Ask() function was removed in car version 2.0-0, which was released on 2010-07-26. So it has been gone for about 6 years. The version of car that is used in the documentation that you are using is 1.2-16, which is from 2009-10-11. So the online documentation source is outdated. I see that the Ask() function is listed in the first edition of John's book, which I have on my shelf, but I don't have the second edition to know if that had been updated. A review of the index for the second edition on Amazon.com would suggest that it was removed for the second edition. Regards, Marc Schwartz> On Jun 21, 2016, at 8:29 PM, Ashim Kapoor <ashimkapoor at gmail.com> wrote: > > I am reading the book An R and S plus companion to Applied Regression and I > found this function there. > > Googling gave me the link [1]. > > 1. http://svitsrv25.epfl.ch/R-doc/library/car/html/Ask.html > > On Wed, Jun 22, 2016 at 6:57 AM, Rolf Turner <r.turner at auckland.ac.nz> > wrote: > >> On 22/06/16 13:06, Ashim Kapoor wrote: >> >>> Dear All, >>> >>> my details:- >>> >>>> sessionInfo() >>>> >>> R version 3.3.0 (2016-05-03) >>> Platform: x86_64-pc-linux-gnu (64-bit) >>> Running under: Ubuntu 15.10 >>> >>> locale: >>> [1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN >>> [4] LC_COLLATE=en_IN LC_MONETARY=en_IN LC_MESSAGES=en_IN >>> [7] LC_PAPER=en_IN LC_NAME=C LC_ADDRESS=C >>> [10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C >>> >>> attached base packages: >>> [1] stats graphics grDevices utils datasets methods base >>> >>> other attached packages: >>> [1] car_2.1-2 >>> >>> loaded via a namespace (and not attached): >>> [1] Rcpp_0.12.5 lattice_0.20-33 MASS_7.3-43 >>> grid_3.3.0 >>> [5] nlme_3.1-128 MatrixModels_0.4-1 SparseM_1.7 >>> minqa_1.2.4 >>> [9] nloptr_1.0.4 Matrix_1.2-6 splines_3.3.0 >>> lme4_1.1-12 >>> [13] pbkrtest_0.4-6 parallel_3.3.0 mgcv_1.8-7 >>> nnet_7.3-10 >>> [17] quantreg_5.24 >>> >>>> >>>> >>> ## Not run: >>>> attach(UN) >>>> >>>> # enter the power-transformation parameter >>>> # start with 1 >>>> Ask(p, function(p) qq.plot(box.cox(gdp, p), >>>> >>> + ylab=paste("transformed gdp, power =",p))) >>> Error: could not find function "Ask" >>> >>>> >>>> >>> What can I do to correct this? >>> >> >> What led you to believe that such a function exists (in the "car" package >> or anywhere else for that matter)? And what exactly do you want it to do >> for you? >> >> cheers, >> >> Rolf Turner >> >> -- >> Technical Editor ANZJS >> Department of Statistics >> University of Auckland >> Phone: +64-9-373-7599 ext. 88276
Dear Mark, Many thanks. Best Regards, Ashim On Wed, Jun 22, 2016 at 7:45 AM, Marc Schwartz <marc_schwartz at me.com> wrote:> According to the NEWS file for the package: > > https://cran.r-project.org/web/packages/car/NEWS > > the Ask() function was removed in car version 2.0-0, which was released on > 2010-07-26. So it has been gone for about 6 years. > > The version of car that is used in the documentation that you are using is > 1.2-16, which is from 2009-10-11. > > So the online documentation source is outdated. > > I see that the Ask() function is listed in the first edition of John's > book, which I have on my shelf, but I don't have the second edition to know > if that had been updated. A review of the index for the second edition on > Amazon.com would suggest that it was removed for the second edition. > > Regards, > > Marc Schwartz > > > > On Jun 21, 2016, at 8:29 PM, Ashim Kapoor <ashimkapoor at gmail.com> wrote: > > > > I am reading the book An R and S plus companion to Applied Regression > and I > > found this function there. > > > > Googling gave me the link [1]. > > > > 1. http://svitsrv25.epfl.ch/R-doc/library/car/html/Ask.html > > > > On Wed, Jun 22, 2016 at 6:57 AM, Rolf Turner <r.turner at auckland.ac.nz> > > wrote: > > > >> On 22/06/16 13:06, Ashim Kapoor wrote: > >> > >>> Dear All, > >>> > >>> my details:- > >>> > >>>> sessionInfo() > >>>> > >>> R version 3.3.0 (2016-05-03) > >>> Platform: x86_64-pc-linux-gnu (64-bit) > >>> Running under: Ubuntu 15.10 > >>> > >>> locale: > >>> [1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN > >>> [4] LC_COLLATE=en_IN LC_MONETARY=en_IN LC_MESSAGES=en_IN > >>> [7] LC_PAPER=en_IN LC_NAME=C LC_ADDRESS=C > >>> [10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C > >>> > >>> attached base packages: > >>> [1] stats graphics grDevices utils datasets methods base > >>> > >>> other attached packages: > >>> [1] car_2.1-2 > >>> > >>> loaded via a namespace (and not attached): > >>> [1] Rcpp_0.12.5 lattice_0.20-33 MASS_7.3-43 > >>> grid_3.3.0 > >>> [5] nlme_3.1-128 MatrixModels_0.4-1 SparseM_1.7 > >>> minqa_1.2.4 > >>> [9] nloptr_1.0.4 Matrix_1.2-6 splines_3.3.0 > >>> lme4_1.1-12 > >>> [13] pbkrtest_0.4-6 parallel_3.3.0 mgcv_1.8-7 > >>> nnet_7.3-10 > >>> [17] quantreg_5.24 > >>> > >>>> > >>>> > >>> ## Not run: > >>>> attach(UN) > >>>> > >>>> # enter the power-transformation parameter > >>>> # start with 1 > >>>> Ask(p, function(p) qq.plot(box.cox(gdp, p), > >>>> > >>> + ylab=paste("transformed gdp, power =",p))) > >>> Error: could not find function "Ask" > >>> > >>>> > >>>> > >>> What can I do to correct this? > >>> > >> > >> What led you to believe that such a function exists (in the "car" > package > >> or anywhere else for that matter)? And what exactly do you want it to > do > >> for you? > >> > >> cheers, > >> > >> Rolf Turner > >> > >> -- > >> Technical Editor ANZJS > >> Department of Statistics > >> University of Auckland > >> Phone: +64-9-373-7599 ext. 88276 > >[[alternative HTML version deleted]]