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? Best Regards, Ashim [[alternative HTML version deleted]]
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
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]]