Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6910755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:51:19+00:00 2026-05-27T08:51:19+00:00

I want to do a logistic transformation on a variable, specifying upper and lower

  • 0

I want to do a logistic transformation on a variable, specifying upper and lower boundaries. I tried to replicated the “logit” function in the gregmisc package :

  library(gregmisc)
  x <- seq(0,10, by=0.25)
  xt <- logit(x, min=0, max=10)

but I get an error message:

Error in logit(x, min = 0, max = 10) : 
  unused argument(s) (min = 0, max = 10)

What gives? (P.S. gtools doesn’t work either).

Here’s the sessionInfo():

> library(gregmisc)    
+ x <- seq(0,10, by=0.25)
+ xt <- logit(x, min=0, max=10)
Error in logit(x, min = 0, max = 10) : 
  unused argument(s) (min = 0, max = 10)
> sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: i486-pc-linux-gnu (32-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8          LC_NUMERIC=C                 
 [3] LC_TIME=en_US.UTF-8           LC_COLLATE=en_US.UTF-8       
 [5] LC_MONETARY=en_US.UTF-8       LC_MESSAGES=en_US.UTF-8      
 [7] LC_PAPER=en_US.UTF-8          LC_NAME=en_US.UTF-8          
 [9] LC_ADDRESS=en_US.UTF-8        LC_TELEPHONE=en_US.UTF-8     
[11] LC_MEASUREMENT=en_US.UTF-8    LC_IDENTIFICATION=en_US.UTF-8

attached base packages:
[1] splines   grid      stats     graphics  grDevices utils     datasets 
[8] methods   base     

other attached packages:
 [1] car_2.0-10      survival_2.36-9 nnet_7.3-1      MASS_7.3-13    
 [5] gregmisc_2.1.1  gplots_2.8.0    caTools_1.12    bitops_1.0-4.1 
 [9] gtools_2.6.2    gmodels_2.15.1  gdata_2.8.2     foreign_0.8-44 
[13] rkward_0.5.6   

loaded via a namespace (and not attached):
[1] tools_2.13.0
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:51:20+00:00Added an answer on May 27, 2026 at 8:51 am

    The clue is that you have the car package loaded as well, which also contains a logit function.

    find("logit")
    

    would have shown you

    [1] "package:car"    "package:gtools"
    

    They have different sets of arguments:

    > names(formals(car::logit))
    [1] "p"        "percents" "a
    > names(formals(gtools::logit))
    [1] "x"   "min" "max"
    

    Either specifying gtools::logit explicitly or doing detach("package:car") should make things work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Want the function to sort the table by HP but if duplicate HPs then
I want write a ruby wrapper for a existing C library (.so files). Can
Want to change case to lower in whole block in visual mode. If i
Want to know what the stackoverflow community feels about the various free and non-free
Want my FireFox at work to be in sync with my FireFox at my
want to know why String behaves like value type while using ==. String s1
want to have a Hyperlink-Button in a gridView in which I can display a
Want to be able to provide a search interface for a collection of objects
Want to code a key pad for an calculator. What I want to make
want to rewrite urls like site.com/software to wp-content/themes/dir/software.php and something is not working.. Here's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.