Re: [R] inverse of the methods function

2021-05-03 Thread Abbs Spurdle
methods (,"glm") On Tue, May 4, 2021 at 10:34 AM Therneau, Terry M., Ph.D. via R-help wrote: > > Is there a complement to the methods function, that will list all the defined > methods for > a class?One solution is to look directly at the NAMESPACE file, for the > package that > defines it

Re: [R] inverse of the methods function

2021-05-03 Thread Martin Morgan
> methods(class = "lm") [1] add1 alias anova case.names coerce [6] confintcooks.distance deviance dfbeta dfbetas [11] drop1 dummy.coef effectsextractAIC family [16] formulahatvalues influence initiali

[R] inverse of the methods function

2021-05-03 Thread Therneau, Terry M., Ph.D. via R-help
Is there a complement to the methods function, that will list all the defined methods for a class?    One solution is to look directly at the NAMESPACE file, for the package that defines it, and parse out the entries.   I was looking for something built-in, i.e., easier. -- Terry M Therneau

Re: [R] inverse of which()

2019-02-28 Thread Ed Siefker
id L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77843-4352 > > -Original Message- > From: R-help On Behalf Of Ed Siefker > Sent: Wednesday, February 27, 2019 5:03 PM > To: r-help > Subject: [R] inverse of which() >

Re: [R] inverse of which()

2019-02-27 Thread William Dunlap via R-help
The inverse of which() would have to know the length of the logical vector to create. The function could be invWhich <- function(whichTrue, length) { stopifnot(length <= max(whichTrue), !anyNA(whichTrue)) v <- logical(length) v[whichTrue] <- TRUE v } It isn't quit

Re: [R] inverse of which()

2019-02-27 Thread Jeff Newmiller
use grepl? On February 27, 2019 3:03:27 PM PST, Ed Siefker wrote: >Given a vector of booleans, chich() will return indices that are TRUE. > >Given a vector of indices, how can I get a vector of booleans? > >My intent is to do logical operations on the output of grep(). Maybe >there's a better wa

Re: [R] inverse of which()

2019-02-27 Thread David L Carlson
-help On Behalf Of Ed Siefker Sent: Wednesday, February 27, 2019 5:03 PM To: r-help Subject: [R] inverse of which() Given a vector of booleans, chich() will return indices that are TRUE. Given a vector of indices, how can I get a vector of booleans? My intent is to do logical operations on the

[R] inverse of which()

2019-02-27 Thread Ed Siefker
Given a vector of booleans, chich() will return indices that are TRUE. Given a vector of indices, how can I get a vector of booleans? My intent is to do logical operations on the output of grep(). Maybe there's a better way to do this? Thanks -Ed __

[R] Inverse Gaussian distribution not working in glm funciton

2018-04-16 Thread michael tsagris via R-help
Hello everybody, I have encountered a problem with the inverse Gaussian distribution. It is very likely that it will not work regardless of the data input. I have programmed this regression and it works fine no matter which distribution the response comes from. If you run this example (first tri

Re: [R] inverse table

2016-06-16 Thread Michael Friendly
That function, expand.dft is in the vcdExtra package On 6/15/2016 12:42 PM, Marc Schwartz wrote: There is a function called expand.dft(), which I posted some years ago, which is a modification of a prior version, posted a few years before that. The updated version is here: https://stat.et

Re: [R] inverse table

2016-06-16 Thread Patrizio Frederic
[3,] "b" "A" > [4,] "b" "A" > [5,] "c" "A" > [6,] "d" "A" > > - > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77

Re: [R] inverse table

2016-06-15 Thread David L Carlson
ot; "A" [2,] "a" "A" [3,] "b" "A" [4,] "b" "A" [5,] "c" "A" [6,] "d" "A" - David L Carlson Department of Anthropology Texas A&M University College St

Re: [R] inverse table

2016-06-15 Thread Marc Schwartz
> On Jun 15, 2016, at 11:10 AM, Patrizio Frederic > wrote: > > Dear R-users, > I've a problem that puzzle me > > suppose I have a two way contigency table > > a <- sample(al <- letters[1:10],100,T) > b <- sample(bl <- LETTERS[1:5],100,T) > ab <- cbind(a,b) > > ddd <- (xtabs(data = ab)) > dd

Re: [R] inverse table

2016-06-15 Thread Leonardo Fontenelle
Em Qua 15 jun. 2016, às 13:10, Patrizio Frederic escreveu: > Dear R-users, > I've a problem that puzzle me > > suppose I have a two way contigency table > > a <- sample(al <- letters[1:10],100,T) > b <- sample(bl <- LETTERS[1:5],100,T) > ab <- cbind(a,b) > > ddd <- (xtabs(data = ab)) > ddd <- a

Re: [R] inverse table

2016-06-15 Thread Ulrik Stervbo
Hi Patrizio, maybe there is a more efficient way, but you can loop over rows and columns like this ab.recon <- data.frame() ddd.rownames <- rownames(ddd) ddd.colnames <- colnames(ddd) for(cur.row in ddd.rownames){ for(cur.col in ddd.colnames){ times.found <- ddd[cur.row, cur.col] tmp.

[R] inverse table

2016-06-15 Thread Patrizio Frederic
Dear R-users, I've a problem that puzzle me suppose I have a two way contigency table a <- sample(al <- letters[1:10],100,T) b <- sample(bl <- LETTERS[1:5],100,T) ab <- cbind(a,b) ddd <- (xtabs(data = ab)) ddd <- as.matrix(ddd) the question is: how do I reverse the code, thus how do I get raw

[R] Inverse normal transformation of ranked data

2016-05-20 Thread data_analyst20bhrl--- via R-help
I am using ddply on a data set that contains 2+ million rows; trying to rank the values of a variable within groups, and then transform the ranks to (approximate) z-scores --- i.e generate quantiles on the normal scale. Here is some sample data for one group:x <- NA 0.3640951 0.1175880 0.3453916

Re: [R] Inverse of many small matrices

2015-04-02 Thread Feng Li
On 04/02/2015 10:40 PM, Duncan Murdoch wrote: On 02/04/2015 9:31 AM, Feng Li wrote: Dear all, I am working with a likelihood function that requires the inverse of many small covariance matrices for multivariate normal densities. When the sample size is large, this calculation is really heavy. T

Re: [R] Inverse of many small matrices

2015-04-02 Thread Duncan Murdoch
On 02/04/2015 9:31 AM, Feng Li wrote: Dear all, I am working with a likelihood function that requires the inverse of many small covariance matrices for multivariate normal densities. When the sample size is large, this calculation is really heavy. Those matrices are independent but unfortunately

[R] Inverse of many small matrices

2015-04-02 Thread Feng Li
Dear all, I am working with a likelihood function that requires the inverse of many small covariance matrices for multivariate normal densities. When the sample size is large, this calculation is really heavy. Those matrices are independent but unfortunately I can hardly find a way to vectori

Re: [R] Inverse Student t-value

2014-10-02 Thread JLucke
) Joe Andre 10/02/2014 07:27 AM To jlu...@ria.buffalo.edu, cc Duncan Murdoch , "r-help@r-project.org" , r-help-boun...@r-project.org Subject Re: [R] Inverse Student t-value Dear All, The manual formula mean that how to calculate that value by hand for TINV(0.408831, 1221) a

Re: [R] Inverse Student t-value

2014-10-02 Thread S Ellison
> The manual formula mean that how to calculate that value by hand for > TINV(0.408831, 1221) and the resulted is 4.0891672 This is not really an R help question - you're specifically asking for something that _doesn't_ use R - but if you want to know how R does it the full C and R code for

Re: [R] Inverse Student t-value

2014-10-02 Thread Andre
e >* > > 09/30/2014 11:54 PM > To > jlu...@ria.buffalo.edu, > cc > Duncan Murdoch , "r-help@r-project.org" < > r-help@r-project.org>, r-help-boun...@r-project.org > Subject > Re: [R] Inverse Student t-value > > > > > Hi JLucke, >

Re: [R] Inverse Student t-value

2014-09-30 Thread Andre
..@r-project.org > > 09/30/2014 02:45 PM > To > Duncan Murdoch , > cc > "r-help@r-project.org" > Subject > Re: [R] Inverse Student t-value > > > > > Hi Duncan, > > Let me explain again, I just need a manual expression for inverse student t &

Re: [R] Inverse Student t-value

2014-09-30 Thread JLucke
Andre Sent by: r-help-boun...@r-project.org 09/30/2014 02:45 PM To Duncan Murdoch , cc "r-help@r-project.org" Subject Re: [R] Inverse Student t-value Hi Duncan, Let me explain again, I just need a manual expression for inverse student t value. You could go to web page h

Re: [R] Inverse Student t-value

2014-09-30 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of jlu...@ria.buffalo.edu > Sent: Tuesday, September 30, 2014 11:49 AM > To: Andre > Cc: r-help@r-project.org > Subject: Re: [R] Inverse Student t-value > &

Re: [R] Inverse Student t-value

2014-09-30 Thread Andre
Hi Duncan, Actually, I am trying trace the formula for the "Critical value of Z" and manual formula is =(I7-1)/SQRT(I7)*SQRT((TINV(0.05/I7,I7-2))^2/(I7-2+TINV(0.05/I7,I7-2))) So, I got new problem for TINV formula. I just need a manual equation for TINV. Hope solve this problem. Cheers! On We

Re: [R] Inverse Student t-value

2014-09-30 Thread Andre
Hi Duncan, Let me explain again, I just need a manual expression for inverse student t value. You could go to web page http://www.danielsoper.com/statcalc3/calc.aspx?id=10 That's inverse student t value calculator. Do you know a manual expression use it. Cheers! On Wednesday, October 1, 2014,

Re: [R] Inverse Student t-value

2014-09-30 Thread Andre
Hi Duncan, No, that's correct. Actually, I have data set below; N= 1223 alpha= 0.05 Then probability= 0.05/1223=0.408831 degree of freedom= 1223-2= 1221 So, TINV(0.408831,1221) returns 4.0891672 Could you show me more detail a manual equation. I really appreciate it if you may give mo

Re: [R] Inverse Student t-value

2014-09-30 Thread peter dalgaard
On 30 Sep 2014, at 20:36 , Duncan Murdoch wrote: >> TINV(0.408831,1221) Just for the record: The above _does_ give 4.117456652 in Excel for Mac OS X. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (

Re: [R] Inverse Student t-value

2014-09-30 Thread Marc Schwartz
t.org > 09/30/2014 02:36 PM > > To > Andre , > cc > r-help@r-project.org > Subject > Re: [R] Inverse Student t-value > > > > > > > On 30/09/2014 2:26 PM, Andre wrote: >> Hi Duncan, >> >> Actually, I am trying trace the formula fo

Re: [R] Inverse Student t-value

2014-09-30 Thread JLucke
My Excel (2013) returns exactly what R does. I used both T.INV and T.INV.T2There is no TINV. Has Excel been updated? Duncan Murdoch Sent by: r-help-boun...@r-project.org 09/30/2014 02:36 PM To Andre , cc r-help@r-project.org Subject Re: [R] Inverse Student t-value On 30/09

Re: [R] Inverse Student t-value

2014-09-30 Thread Duncan Murdoch
On 30/09/2014 2:26 PM, Andre wrote: Hi Duncan, Actually, I am trying trace the formula for the "Critical value of Z" and manual formula is =(I7-1)/SQRT(I7)*SQRT((TINV(0.05/I7,I7-2))^2/(I7-2+TINV(0.05/I7,I7-2))) So, I got new problem for TINV formula. I just need a manual equation for TINV.

Re: [R] Inverse Student t-value

2014-09-30 Thread Ted Harding
And, with 1221 degrees of freedom, one cannot be far off a Normal distribution. So: abs(qnorm(0.408831/2)) [1] 4.102431 which is nearer to Duncan's answer (4.117, and a bit smaller, as it should be) than to yours (4.0891672, which, if accurate, should be greater than the Normal value 4.10

Re: [R] Inverse Student t-value

2014-09-30 Thread Duncan Murdoch
On 30/09/2014 2:11 PM, Andre wrote: Hi Duncan, No, that's correct. Actually, I have data set below; Then it seems Excel is worse than I would have expected. I confirmed R's value in two other pieces of software, OpenOffice and some software I wrote a long time ago based on an algorithm publ

Re: [R] Inverse Student t-value

2014-09-30 Thread Duncan Murdoch
On 30/09/2014 1:31 PM, Andre wrote: Dear Sir/Madam, I am trying to use calculation for two-tailed inverse of the student`s t-distribution function presented by Excel functions like =TINV(probability, deg_freedom). For instance: The Excel function =TINV(0.408831,1221) = returns 4.0891672.

[R] Inverse Student t-value

2014-09-30 Thread Andre
Dear Sir/Madam, I am trying to use calculation for two-tailed inverse of the student`s t-distribution function presented by Excel functions like =TINV(probability, deg_freedom). For instance: The Excel function =TINV(0.408831,1221) = returns 4.0891672. Would you like to show me a manual ca

[R] inverse Gaussian data transformation in R?

2014-08-08 Thread gj
Anyone know of an R package that will allow me to do an inverse Gaussian/Wald distribution transform of my data (reaction times)? Thanks! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] inverse normal distribution function

2014-04-19 Thread Suzen, Mehmet
Not sure how would you do that but there is a package SEM on CRAN for structural equation models. On 20 April 2014 01:10, thanoon younis wrote: > thank you so much Suzen > i want to use bayesian analysis in structural equation models with ordered > categorical data and i want to use inverse norma

Re: [R] inverse normal distribution function

2014-04-19 Thread Suzen, Mehmet
You may want to read about generalized linear modelling and link functions for forming appropriate categorical variable/link function. See documentations in R: ?glm, ?family and ?inverse.gaussian. Also look at the original paper of Nelder, John; Wedderburn, Robert , it is available freely with th

Re: [R] inverse normal distribution function

2014-04-18 Thread Rolf Turner
On 18/04/14 15:13, thanoon younis wrote: dear all members i want to use inverse normal distribution in R to show the value of variable Z when Z represent the ordered categorical variables. i hope anyone gives me an example on this distribution (1) Your question makes no sense. The normal dist

[R] inverse normal distribution function

2014-04-18 Thread thanoon younis
dear all members i want to use inverse normal distribution in R to show the value of variable Z when Z represent the ordered categorical variables. i hope anyone gives me an example on this distribution . thanks to all [[alternative HTML version deleted]] ___

Re: [R] Inverse of Probit

2013-11-20 Thread Ben Bolker
David Winsemius comcast.net> writes: > > > On Nov 19, 2013, at 10:59 AM, Calum wrote: > > > Hi there, > > I hope someone can help me. > > > > I have a dataset of Concentration against Mortality, and I am trying to > > compare the use of Logit and Probit models using this data. [snip snip sn

Re: [R] Inverse of Probit

2013-11-19 Thread David Winsemius
On Nov 19, 2013, at 10:59 AM, Calum wrote: > Hi there, > I hope someone can help me. > > I have a dataset of Concentration against Mortality, and I am trying to > compare the use of Logit and Probit models using this data. > > The issue I am having is trying to back transform the data from the

[R] Inverse of Probit

2013-11-19 Thread Calum
Hi there, I hope someone can help me. I have a dataset of Concentration against Mortality, and I am trying to compare the use of Logit and Probit models using this data. The issue I am having is trying to back transform the data from the probit model, to plot it in normal space instead of log spa

Re: [R] inverse for formula transformations on LHS

2013-05-21 Thread Paul Johnson
On Sat, May 18, 2013 at 7:05 AM, Stephen Milborrow wrote: > Paul Johnson wrote: >> >> m1 <- lm(log(y) ~ log(x), data = dat) >> >> termplot shows log(y) on the vertical. What if I want y on the vertical? >> > > plotmo in the plotmo package has an inverse.func argument, > so something like the fo

Re: [R] inverse for formula transformations on LHS

2013-05-18 Thread Stephen Milborrow
Paul Johnson wrote: m1 <- lm(log(y) ~ log(x), data = dat) termplot shows log(y) on the vertical. What if I want y on the vertical? plotmo in the plotmo package has an inverse.func argument, so something like the following might work for you? library(MASS) library(plotmo) log.brain <- log(An

Re: [R] inverse for formula transformations on LHS

2013-05-17 Thread Roger Koenker
Paul, Inverting log(y) is just the beginning of the problem, after that you need to teach predict.lm() that E(y |x) = exp(x'betahat + .5*sigmahat^2) and then further lessons are required to get it to understand how to adapt its confidence and prediction bands… and then you need to generalize

[R] inverse for formula transformations on LHS

2013-05-17 Thread Paul Johnson
This is an R formula handling question. It arose in class. We were working on the Animals data in the MASS package. In order to see a relationship, you need to log brain and body weight. It's a fun one for teaching regression, if you did not try it yet. There are outliers too! Students wanted to

Re: [R] Inverse function using FDA

2013-03-06 Thread zoe richards
I am trying to register unemployment rate and inverse of inflation rate to investigate the phillips curve by looking at the resulting warping function. On Wed, Mar 6, 2013 at 5:17 PM, Peter Ehlers wrote: > On 2013-03-06 12:54, zoe richard

Re: [R] Inverse function using FDA

2013-03-06 Thread Peter Ehlers
On 2013-03-06 12:54, zoe richards wrote: Hi, Does anyone know how (or whether or not it's possible) to output an inverse of a functional object? I haven't found a way, but since derivatives etc. can be computed using the "fda" package it seems like this should be possible using this package or

[R] Inverse function using FDA

2013-03-06 Thread zoe richards
Hi, Does anyone know how (or whether or not it's possible) to output an inverse of a functional object? I haven't found a way, but since derivatives etc. can be computed using the "fda" package it seems like this should be possible using this package or another designed for functional data analys

Re: [R] inverse binomial in R[solved]

2012-06-19 Thread anna freni sterrantino
Rcran help Inviato: Martedì 19 Giugno 2012 16:00 Oggetto: Re: [R] inverse binomial in R On Jun 19, 2012, at 11:39 , anna freni sterrantino wrote: > > > Hi Duncan and Rlist, > I've notice a different behaviour in the invbinomial > you suggest me and invbinomial in stata. > >

Re: [R] inverse binomial in R

2012-06-19 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of anna freni sterrantino > Sent: Tuesday, June 19, 2012 2:40 AM > To: Duncan Murdoch > Cc: Rcran help > Subject: Re: [R] inverse binomial in R > >

Re: [R] inverse binomial in R

2012-06-19 Thread Eik Vettorazzi
invbinomial(50,50, 0.6) > > . display p4 > 0 > > Thanks > Cheers > > Anna > > > ____ > Da: Duncan Murdoch > > Cc: Rcran help > Inviato: Giovedì 31 Maggio 2012 15:32 > Oggetto: Re: [R] inverse binomial in R > > On 12-05-31 9:10 AM, anna fr

Re: [R] inverse binomial in R

2012-06-19 Thread peter dalgaard
of course that pbinom(n,n,whatever) is identically 1, so solving for any other value is pointless. Modifying Duncan's code to return 0 if k >= n is left as an exercise for the reader... -Peter D. > Thanks > Cheers > > Anna > > > ____________ &

Re: [R] inverse binomial in R

2012-06-19 Thread anna freni sterrantino
ran help Inviato: Giovedì 31 Maggio 2012 15:32 Oggetto: Re: [R] inverse binomial in R On 12-05-31 9:10 AM, anna freni sterrantino wrote: > Hello! > I'm having some trouble > trying to replicate in R a Stata function > >  invbinomial(n,k,p) >        Domain n:    1 to 1e+17

Re: [R] inverse binomial in R

2012-05-31 Thread Duncan Murdoch
On 12-05-31 9:10 AM, anna freni sterrantino wrote: Hello! I'm having some trouble trying to replicate in R a Stata function invbinomial(n,k,p) Domain n: 1 to 1e+17 Domain k: 0 to n - 1 Domain p: 0 to 1 (exclusive) Range:0 to 1 Descrip

[R] inverse binomial in R

2012-05-31 Thread anna freni sterrantino
Hello! I'm having some trouble  trying to replicate in R a Stata function  invbinomial(n,k,p)        Domain n:     1 to 1e+17        Domain k:     0 to n - 1        Domain p:     0 to 1 (exclusive)        Range:        0 to 1        Description:  returns the inverse of the cumulative binomial; i.e

[R] Inverse problems in R package

2011-12-24 Thread Jin Minming
Dear  all,   I have a general relationship, which can be easily solved using forward engineering model, y=f(x1, x2, x3) Now I know a distribution of y, how can I get the corresponding distributions for x1, x2, and x3? In another situation, if I know the distributions of y and x1, how can I ob

Re: [R] Inverse matrix using eigendecomposition

2011-12-13 Thread wwreith
Sorry but I am not a student, at least not since 2007. However I am performing grunt work for a someone with a Ph.D. so it does remind me of the student days. I just have a pay check instead of student loans. -- View this message in context: http://r.789695.n4.nabble.com/Inverse-matrix-using-

Re: [R] Inverse matrix using eigendecomposition

2011-12-12 Thread Berend Hasselman
wwreith wrote > > General goal: Write R code to find the inverse matrix of an nxn positive > definite symmetric matrix. Use solve() to verify your code works. > > Started with a 3x3 matrix example to build the code, but something dosen't > seem to be working. I just don't know where I am going w

[R] Inverse matrix using eigendecomposition

2011-12-12 Thread wwreith
General goal: Write R code to find the inverse matrix of an nxn positive definite symmetric matrix. Use solve() to verify your code works. Started with a 3x3 matrix example to build the code, but something dosen't seem to be working. I just don't know where I am going wrong. ##Example matrix I fo

[R] inverse of the weight function

2011-11-28 Thread Soberon Velez, Alexandra Pilar
Dear members, I'm trying to do a local polynomial estimation where the weight function is the inverse of the kernel (using a gaussian kernel). Does anybody know how I can do it? When I work with a weigth function usual I use: locfif(y~lp(x,deg=1,h=0.75),kern="gauss") Does anybody know

Re: [R] Inverse of FAQ 7.31.

2011-08-02 Thread Rolf Turner
Thanks to Peter Dalgaard and to Baptiste Auguie (off-list) for the insights they provided. cheers, Rolf turner __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Inverse of FAQ 7.31.

2011-08-02 Thread peter dalgaard
On Aug 2, 2011, at 08:02 , Rolf Turner wrote: > > > Why does R think these numbers ***are*** equal? > > In a somewhat bizarre set of circumstances I calculated > >x0 <- 0.03580067 >x1 <- 0.03474075 >y0 <- 0.4918823 >y1 <- 0.4474461 >dx <- x1 - x0 >dy <- y1 - y0 >xx

[R] Inverse of FAQ 7.31.

2011-08-01 Thread Rolf Turner
Why does R think these numbers ***are*** equal? In a somewhat bizarre set of circumstances I calculated x0 <- 0.03580067 x1 <- 0.03474075 y0 <- 0.4918823 y1 <- 0.4474461 dx <- x1 - x0 dy <- y1 - y0 xx <- (x0 + x1)/2 yy <- (y0 + y1)/2 chk <- yy*dx - xx*dy + x

Re: [R] Inverse autocorrelation fonction

2011-05-17 Thread Jean-Baptiste Lepetit
In fact, my previous post is not correct: you have to replace : acfth <- ARMAacf(ar=numeric(0),ma=artest$ar) by : acfth <- ARMAacf(ar=numeric(0),ma=-artest$ar) Then it coincides exactly the same correlations as SAS The error comes from the equation estimated by the ar() function : "For defini

[R] Inverse autocorrelation fonction

2011-05-16 Thread Jean-Baptiste Lepetit
I've been looking for an IACF() procedure in R for a long time (it's a very convenient function to check for overdifferencing time series), and eventually decided to write my own function. Here's what I came up with : 3 web-pages helped me estimate it : http://www.xycoon.com/inverse_autocorrelatio

Re: [R] Inverse noncentral Beta

2011-04-03 Thread Ted Harding
On 03-Apr-11 13:03:30, Eduardo M. A. M.Mendes wrote: > Hello > I could not find whether there is any R-function that implements > the inverse of a noncentral Beta. Could someone out there tell > me where I can find it? Or how to implement it? > > Many thanks > Ed Have a look at the 'ncp' paramat

[R] Inverse noncentral Beta

2011-04-03 Thread Eduardo M. A. M.Mendes
Hello I could not find whether there is any R-function that implements the inverse of a noncentral Beta. Could someone out there tell me where I can find it? Or how to implement it? Many thanks Ed [[alternative HTML version deleted]] ___

Re: [R] Inverse Prediction with splines

2011-01-20 Thread David Winsemius
On Jan 20, 2011, at 2:37 PM, > wrote: Hello, I have fit a simple spline model to the following data. Data x y 0 1.298 2 0.605 3 0.507 4 0.399 5 0.281 6 0.203 7 0.150 8 0.101 Model Sp.1=lm(y~bs(x,df=4)) Now I wish to inverse predict the

[R] Inverse Prediction with splines

2011-01-20 Thread Jeffrey.Morris
Hello, I have fit a simple spline model to the following data. Data x y 0 1.298 2 0.605 3 0.507 4 0.399 5 0.281 6 0.203 7 0.150 8 0.101 Model Sp.1=lm(y~bs(x,df=4)) Now I wish to inverse predict the x for y=.75, say. Optimize works fine for a

Re: [R] Inverse Gaussian Distribution

2011-01-04 Thread Louisa
Dear David, It works! Thank you so much for your help! Louisa -- View this message in context: http://r.789695.n4.nabble.com/Inverse-Gaussian-Distribution-tp3172533p3174015.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-p

Re: [R] Inverse Gaussian Distribution

2011-01-04 Thread Louisa
Thank you again David! I did not try it yet, cause neither the dataset nor R is on this computer. I'll try it in a few hours, as soon as possible, when I'm on my personal computer. I'll let you know if it works. I'm really curious! Thank you for your time! Best Wishes, Louisa -- View this

Re: [R] Inverse Gaussian Distribution

2011-01-04 Thread David Winsemius
On Jan 4, 2011, at 7:50 AM, Louisa wrote: Thank you! But i'm wondering: if you run area <- factor(area, levels=c("C", "A","B","D","E","F") ) then you are transforming only 'area', aren't you? isn't it possible to transform the whole data like i did for agecat but now for area and area C

Re: [R] Inverse Gaussian Distribution

2011-01-04 Thread Louisa
Thank you! But i'm wondering: if you run area <- factor(area, levels=c("C", "A","B","D","E","F") ) then you are transforming only 'area', aren't you? isn't it possible to transform the whole data like i did for agecat but now for area and area C as baseline, or are you doing so when y

Re: [R] Inverse Gaussian Distribution

2011-01-03 Thread Dennis Murphy
Hi: "How can i manipulate the data to set the baseline of area to C? R is producing errors when I'm trying to do so." See ?relevel Dennis On Mon, Jan 3, 2011 at 12:03 PM, Louisa wrote: > > Dear, > > I want to fit an inverse gaussion distribution to a data set. > > The predictor variables are

Re: [R] Inverse Gaussian Distribution

2011-01-03 Thread David Winsemius
On Jan 3, 2011, at 3:03 PM, Louisa wrote: Dear, I want to fit an inverse gaussion distribution to a data set. The predictor variables are gender, area and agecategory. For each of these variables I've defined a baseline e.g. #agecat: baseline is 3 data<-transform(data, agecat=C(factor(ageca

[R] Inverse Gaussian Distribution

2011-01-03 Thread Louisa
Dear, I want to fit an inverse gaussion distribution to a data set. The predictor variables are gender, area and agecategory. For each of these variables I've defined a baseline e.g. #agecat: baseline is 3 data<-transform(data, agecat=C(factor(agecat,ordered=TRUE), contr.treatment(n=6,base

Re: [R] inverse function of melt

2010-06-18 Thread Henrique Dallazuanna
Try this: xtabs(value ~ YEAR + variable, x) On Fri, Jun 18, 2010 at 10:39 AM, n.via...@libero.it wrote: > > Dear list, > I'm looking for an inverse function of melt(which is in package > reshape).Namely, I had a data frame like this > (Table1) > > YEAR VAR1 VAR2 VAR3 > 1995 7

Re: [R] inverse function of melt

2010-06-18 Thread Joris Meys
http://had.co.nz/reshape/ please, do at least some effort before you post a question, so people don't have to point out that your question can easily be solved by reading the f*cking manual. cheers Joris On Fri, Jun 18, 2010 at 3:39 PM, n.via...@libero.it wrote: > > Dear list, > I'm looking fo

Re: [R] inverse function of melt

2010-06-18 Thread Steven McKinney
Subject: [R] inverse function of melt Dear list, I'm looking for an inverse function of melt(which is in package reshape).Namely, I had a data frame like this (Table1) YEAR VAR1 VAR2 VAR3 1995 7 3 45 1996 5 632 1997 6 10

[R] inverse function of melt

2010-06-18 Thread n.via...@libero.it
Dear list, I'm looking for an inverse function of melt(which is in package reshape).Namely, I had a data frame like this (Table1) YEAR VAR1 VAR2 VAR3 1995 7 3 45 1996 5 632 1997 6 10 15 I transformed my data by using th

Re: [R] Inverse plot colors?

2010-03-29 Thread Lukas Schefczyk
-- From: "Frostygoat" Sent: Monday, March 29, 2010 8:09 PM To: Subject: [R] Inverse plot colors? Hi, I'm looking for a way to get white boxplots on a black background. The following is insufficient because although the box is white, I can't figure out how to chan

[R] Inverse plot colors?

2010-03-29 Thread Frostygoat
Hi, I'm looking for a way to get white boxplots on a black background. The following is insufficient because although the box is white, I can't figure out how to change the whisker color to white. x <- rnorm(100) par(bg = "black") boxplot(x) boxplot(x, col = "white", notch=T) Is there no way to

Re: [R] inverse function of SSlogis

2010-03-29 Thread Kay Cichini
hello gabor, thanks a lot for that. i'll try. best wishes, kay -- View this message in context: http://n4.nabble.com/inverse-function-of-SSlogis-tp1694995p1695061.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] inverse function of SSlogis

2010-03-29 Thread Gabor Grothendieck
Try this. More info at http://ryacas.googlecode.com : > library(Ryacas) > Asym <- Sym("Asym"); xmid <- Sym("xmid"); scal <- Sym("scal") > x <- Sym("x"); y <- Sym("y") > Solve(Asym/(1+exp((xmid-x)/scal))==y, x) expression(list(x == xmid - log(Asym/y - 1) * scal)) On Mon, Mar 29, 2010 at 7:24 AM

[R] inverse function of SSlogis

2010-03-29 Thread Kay Cichini
hello, is there a more convenient way to get the inverse of SSlogis than transforming the function by hand? thanks, kay -- View this message in context: http://n4.nabble.com/inverse-function-of-SSlogis-tp1694995p1694995.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Inverse function

2010-02-25 Thread Greg Snow
2010 2:31 PM > To: Bert Gunter > Cc: r-help > Subject: Re: [R] Inverse function > > This is not a homework problem. > > How to solve numerically for y from f(y,r) - a=g(y)=0? I am not too > sure. > > Thanks! >Hannah > > > 2010/

Re: [R] Inverse function

2010-02-24 Thread li li
; > > Bert Gunter > Genentech Nonclinical Biostatistics > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On > Behalf Of li li > Sent: Wednesday, February 24, 2010 12:46 PM > To: r-help > Subject: [R] Inverse

Re: [R] Inverse function

2010-02-24 Thread Bert Gunter
To: r-help Subject: [R] Inverse function Hi all, I have a function like the following: f <- function(r, y){r/(2*pi)*exp(1)^(-y)*(1+r*(y/2)+r^(2)*(y-1)^(2)/6)} For fixed r, I want to find the inverse funtion in terms y. In other words, for fixed r, if the value of the function is given,

[R] Inverse function

2010-02-24 Thread li li
Hi all, I have a function like the following: f <- function(r, y){r/(2*pi)*exp(1)^(-y)*(1+r*(y/2)+r^(2)*(y-1)^(2)/6)} For fixed r, I want to find the inverse funtion in terms y. In other words, for fixed r, if the value of the function is given, I want to find the corrsponding y value th

Re: [R] inverse lexicographical ordering

2010-02-20 Thread Evgenia
Thanks for your help. Finally I found the solution to this problem for any matrix without having to know its number of columns I write it down in case someone else needed it. #Creation of b matrix ncol<-3 b <- matrix(0, 2^ncol, ncol) for (i in 1:ncol) b[, ncol+1-i] <- rep(rep(c

Re: [R] inverse lexicographical ordering

2010-02-19 Thread Daniel Malter
,z),] HTH, Daniel - cuncta stricte discussurus - -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Evgenia Sent: Friday, February 19, 2010 12:10 PM To: r-help@r-project.org Subject: [R

[R] inverse lexicographical ordering

2010-02-19 Thread Evgenia
Dear users, I have a matrix b as [,1] [,2] [,3] [,4] [1,]0000 [2,]0011 [3,]0101 [4,]0112 [5,]1001 [6,]1012 [7,]1102 [8,]1113 with last column the rowSums(b) I w

Re: [R] Inverse matrix

2009-12-28 Thread Henrique Dallazuanna
Try: solve(a) On Mon, Dec 28, 2009 at 8:53 AM, FMH wrote: > Dear All, > > Let A is a matrix which is: > A <- matrix(c(1,2,3,4),nrow=2) > > How could we find the inverse of A? I try to use ginv(A), but it didn't > worked. > > Thanks > > Fir > > __ > R-

[R] Inverse matrix

2009-12-28 Thread FMH
Dear All, Let A is a matrix which is: A <- matrix(c(1,2,3,4),nrow=2) How could we find the inverse of A? I try to use ginv(A), but it didn't worked. Thanks Fir __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] inverse gamma truncated

2009-12-07 Thread khazaei
Hi, all How can generate a sample from truncated inverse gamma distribution in R? thanks __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and

Re: [R] inverse currying

2009-10-02 Thread baptiste auguie
After some more digging (grep "alist" R-devel/ ), I've come up with this, tools:::as.alist.symbol("x") sugar = function(fun, id = "id"){ ff <- formals(fun) if( id %in% names(ff)) stop(paste(id, "is part of args(fun)")) new.arg <- tools:::as.alist.symbol(id) formals(fun) <- c(unlist(ff),

  1   2   >