[R] dotchart and dotplot(lattice) plot with two/three conditioning variables

2024-09-04 Thread Anupam Tyagi
lation = c("Dallas", "Boston", "Chicago", "Kip", "Von", "Dan", "Dallas", "Boston", "Chicago", "Kip", "Von", "Dan" ), Year = c("2004-05", "2004-05", "2004-0

Re: [R] WDI package commands timing out and not working

2024-08-10 Thread Anupam Tyagi
Thanks, Ivan. I will fill out the support form at the World Bank. On Fri, 9 Aug 2024 at 22:16, Ivan Krylov wrote: > В Fri, 9 Aug 2024 20:25:51 +0530 > Anupam Tyagi пишет: > > > I am trying this in Bengaluru, India, using R-studio. I tried > > downloading a single variable.

Re: [R] WDI package commands timing out and not working

2024-08-09 Thread Anupam Tyagi
connection. You can check if the World Bank web API is currently serving the indicator(s) of interest by typing a URL of this form in your web browser: https://api.worldbank.org/v2/en/country/all/indicator/NY.GNS.ICTR.GN.ZS?format=json&date=:&per_page=32500&page=1 On Fri, 9 Aug

Re: [R] WDI package commands timing out and not working

2024-08-09 Thread Anupam Tyagi
I tried running the same command on my home computer, and it downloaded in less than 30 seconds. So, it seems the problem is with internet connection at work. Thanks, Ivan. On Fri, 9 Aug 2024 at 18:30, Anupam Tyagi wrote: > In the browser the link downloads immediately, in less than a second

Re: [R] WDI package commands timing out and not working

2024-08-09 Thread Anupam Tyagi
In the browser the link downloads immediately, in less than a second. I let the command run in R for five minutes, using R Studio. Nothing happened. On Fri, 9 Aug 2024 at 17:54, Ivan Krylov wrote: > В Thu, 8 Aug 2024 12:43:23 +0530 > Anupam Tyagi пишет: > > > In open.conn

[R] WDI package commands timing out and not working

2024-08-08 Thread Anupam Tyagi
; country = c('OED'), start=1977, end=2020)Warning message: In open.connection(con, "rb") : URL 'https://api.worldbank.org/v2/en/country/OED/indicator/NY.ADJ.NNAT.GN.ZS?format=json&date=1977:2020&per_page=32500&page=1': Timeout of 60 seconds was r

Re: [R] Automatic Knot selection in Piecewise linear splines

2024-07-27 Thread Anupam Tyagi
gt; However segmented appears to be less efficient than earth (although with > reasonable running times), it does NOT work with multivariate responses > neither products between piecewise linear terms. > > kind regards, > Vito > > > > Il 16/07/2024 11:22, Martin Maechler

Re: [R] Automatic Knot selection in Piecewise linear splines

2024-07-16 Thread Anupam Tyagi
Thanks, Martin. This is very helpful. On Tue, 16 Jul 2024 at 14:52, Martin Maechler wrote: > >>>>> Anupam Tyagi > >>>>> on Tue, 9 Jul 2024 16:16:43 +0530 writes: > > > How can I do automatic knot selection while fitting piecewise linear &g

[R] Automatic Knot selection in Piecewise linear splines

2024-07-09 Thread Anupam Tyagi
How can I do automatic knot selection while fitting piecewise linear splines to two variables x and y? Which package to use to do it simply? I also want to visualize the splines (and the scatter plot) with a graph. Anupam [[alternative HTML version deleted

Re: [R] Variable and value labels

2023-07-13 Thread Anupam Tyagi
Thanks again, Avi. I will read up more on factors. On Thu, 13 Jul, 2023, 8:51 pm , wrote: > Anupam, > > > > Thanks for explaining you are talking about factors. > > > > I see my friend Adrian has pointed out reasons you may want to use a > package he built called

Re: [R] Variable and value labels

2023-07-12 Thread Anupam Tyagi
plotting or displaying results. Maybe I am worried for nothing. I have not used R much after 2003. In the past few months I have begun to use R again with R Studio, mostly for plotting and visualization of data. So, you can think of me as a new user. On Thu, 13 Jul 2023 at 00:14, wrote: > Anu

Re: [R] Variable and value labels

2023-07-12 Thread Anupam Tyagi
ot;,"manual")) > mtcars > > # add a variable label via comment() > comment(mtcars$am) <- "Type of transmission" > > # extract all the variable labels > sapply(mtcars, comment) > > Best, > Wolfgang > > >-Original Message- > >From: R-hel

Re: [R] Variable and value labels

2023-07-12 Thread Anupam Tyagi
:33 pm Martin Maechler, wrote: > >>>>> Anupam Tyagi > >>>>> on Wed, 12 Jul 2023 09:18:55 +0530 writes: > > > Hello, > > > is there an easy way to do variable and value labels (for > > factor variables) in base-R, witho

Re: [R] Plotting factors in graph panel

2023-07-11 Thread Anupam Tyagi
Wonderful! This is great news. Thanks, Deepayan. On Wed, 12 Jul 2023 at 09:21, Deepayan Sarkar wrote: > > > On Wed, 12 Jul 2023 at 08:57, Anupam Tyagi wrote: > >> Thanks. >> I made a graph in Stata that is close to what I want in R. Stata graph is >> attached

[R] Variable and value labels

2023-07-11 Thread Anupam Tyagi
Hello, is there an easy way to do variable and value labels (for factor variables) in base-R, without using a package. If not, what is an easy and good way to do labels, using an add-on package. -- Anupam. [[alternative HTML version deleted

[R] Alternative to rggobi

2023-07-11 Thread Anupam Tyagi
Hello, since rggobi is not available, is there an alternative to rggobi? -- Anupam. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Plotting factors in graph panel

2023-07-11 Thread Anupam Tyagi
:57, PIKAL Petr wrote: > Hallo Anupam > > With > > ggplot change axis label size into Google > > the first answer I got was > > axis.text theme > > r - Change size of axes title and labels in ggplot2 - Stack Overflow > <https://stackoverflow.com/questions

Re: [R] Plotting factors in graph panel

2023-07-07 Thread Anupam Tyagi
Thanks! You are correct, the graphs look very similar, except ggplot is scaling the text font to make it more readable. Is there a way to scale down the x-axis labels, so they are readable? On Fri, 7 Jul 2023 at 12:02, PIKAL Petr wrote: > Hallo Anupam > > I do not see much difference

Re: [R] Plotting factors in graph panel

2023-07-07 Thread Anupam Tyagi
. On Thu, 6 Jul 2023 at 18:35, Deepayan Sarkar wrote: > On Thu, 6 Jul 2023 at 15:21, Anupam Tyagi wrote: > > > > Btw, I think "lattice" graphics will provide a better solution than > > "ggplot", because it puts appropriate (space saving) markers on the axes

Re: [R] Plotting factors in graph panel

2023-07-06 Thread Anupam Tyagi
Btw, I think "lattice" graphics will provide a better solution than "ggplot", because it puts appropriate (space saving) markers on the axes and does axes labels well. However, I cannot figure out how to do it in "lattice". On Thu, 6 Jul 2023 at 15:11, Anupam Tyagi

Re: [R] Plotting factors in graph panel

2023-07-06 Thread Anupam Tyagi
None 3", "MF None 3", "MF None 3", "MF None 3", "MF None 3", "MF Equity 3", "MF Equity 3", "MF Equity 3", "MF Equity 3", "MF Equity 3", "MF Debt 3", "MF Debt 3", "MF Debt 3&q

Re: [R] Plotting factors in graph panel

2023-07-05 Thread Anupam Tyagi
ot;) > axis(1,at=1:5,labels=at_df$Income) > plot(at_df[,"MF_Equity"], > type="l",lwd=3,main="MF_Equity", > xlab="Income",ylab="%",xaxt="n") > axis(1,at=1:5,labels=at_df$Income) > plot(at_df[,"MF_Debt"], > type

Re: [R] Plotting factors in graph panel

2023-07-03 Thread Anupam Tyagi
Attached is another example plot, that is better than the earlier one. On Mon, 3 Jul 2023 at 15:21, Anupam Tyagi wrote: > I thought maybe I can share with you how the data looks in Excel, and an > example plot I found on the web that looks similar to what I want to plot. > These are at

Re: [R] Plotting factors in graph panel

2023-07-03 Thread Anupam Tyagi
Bank_Sasvings", > xlab="Income",ylab="%",xaxt="n") > axis(1,at=1:5,labels=at_df$Income) > plot(at_df[,"MF_Equity"], > type="l",lwd=3,main="MF_Equity", > xlab="Income",ylab="%",xaxt="n")

Re: [R] Plotting factors in graph panel

2023-06-28 Thread Anupam Tyagi
00 36.27 33.94 33.74 29.44 27.25 Bank AC None 1 46.54 54.01 59.1 62.17 67.67 60.87 Current 2 24.75 24.4 25 24.61 24.02 21.09 Savings 3 25.4 18.7 29 11.48 7.103 13.46 No Answer 9 3.307 2.891 13.4 1.746 1.208 4.577 On Wed, 28 Jun 2023 at 17:30, Jim Lemon wrote: > Hi Anupam, > Haven't

[R] Plotting factors in graph panel

2023-06-28 Thread Anupam Tyagi
.02 21.09 Savings 3 25.4 18.7 29 11.48 7.103 13.46 No Answer 9 3.307 2.891 13.4 1.746 1.208 4.577 Thanks. -- Anupam. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mail

Re: [R] loess plotting problem

2023-03-23 Thread Anupam Tyagi
Thanks, John. However, loess.smooth() is producing a very different curve compared to the one that results from applying predict() on a loess(). I am guessing they are using different defaults. Correct? On Thu, 23 Mar 2023 at 20:20, John Fox wrote: > Dear Anupam Tyagi, > > You didn&

[R] loess plotting problem

2023-03-23 Thread Anupam Tyagi
the data columns. Please help. library(stats) attach(gini_pci_wdi_narm) plot(ny_gnp_pcap_pp_kd, si_pov_gini) lines(loess(si_pov_gini ~ ny_gnp_pcap_pp_kd, gini_pci_wdi_narm)) detach(gini_pci_wdi_narm) -- Anupam. [[alternative HTML version deleted]] _

[R] Grouped Boxplot

2014-07-11 Thread anupam sinha
ned case I should get three groups of boxplots A, B, and C. Also each of the POS A, B and C should have two boxplots (one for Hubs and one for Nonhubs). Thanks in advance for any help. Anupam [[alternative HTML version deleted]] __ R-help@r-p

Re: [R] reading files

2013-09-04 Thread anupam sinha
Dear Arun, Thanks a ton for your help. Regards, Anupam On Tue, Sep 3, 2013 at 7:12 PM, arun wrote: > > > HI, > > ?list.files() > list.files() #created 4 files in my working directory > #[1] "A_hubs.txt""A_nonhubs.txt" "B_hubs.txt"

[R] reading files

2013-09-03 Thread anupam sinha
... I want to calculate the p-value of the function wilcox.test(A_hubs$TIS_SV,A_nonhubs$TIS_SV) and store it in a table of the format NAME p-value A 0.05 Can some give me pointers in the direction? Thanks in advance Anupam [[alternative HTML version deleted

[R] Error message after R-3.0.0 upgrade installation

2013-04-29 Thread Anupam Tyagi
s not consistent with catched value Error: requested primitive type is not consistent with catched value > " Anupam. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-projec

Re: [R] help with kriging interpolation

2013-04-04 Thread Anupam Tyagi
You may want to look at a GIS related package in R. The soil sampling example makes sense. Anupam. On 4/4/13, Jeff Newmiller wrote: > I am no expert on kriging, but I do know that your question desperately > needs a reproducible example [1] that illustrates the actual problem y

Re: [R] Deviance in Zero inflated models

2013-04-04 Thread Anupam Tyagi
d co-autors webpages at U Chicago may also contain some pointers and may be R code. Unfortunately, I have not used R for these type of models. HTH, Anupam. On 4/4/13, Lia McKinnon wrote: > Dear list, > > I am running some zero inflated models and would like to know what the > deviance o

[R] non-parametric & semi-parametric methods for survey & longitudinal data

2013-04-04 Thread Anupam Tyagi
! Anupam. [[alternative HTML version deleted]] __ 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 provide commented, minimal, self

[R] moderator has not updated email address: can not post to r-help

2013-04-03 Thread Anupam Tyagi
The list moderator has not updated email address from previous employer. i can not post to r-help. Is there a way around this? Anupam. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Fwd: Important: message being returned.

2013-04-03 Thread Anupam Tyagi
longer with the firm. For immediate assistance, please contact Reception at +1-212-478-. Sincerely, The D. E. Shaw Group -- 8< --- CUT HERE -- CUT HERE --- >8 -- From:Anupam Tyagi To: R help-list cc: Subject: [R] MAS (non-parametric

Re: [R] node stack overflow when extracting labels from a dendrogram

2013-04-03 Thread Anupam Tyagi
You are doing better: I had crashed a Unix workstation some years ago trying to read 3-d Table of about 50x50x150 in S+. You may just have to wait for computer to be better. Anupam. On Thu, Apr 4, 2013 at 9:23 AM, Oleksandr Moskalenko wrote: > It looks like R 3.0.0 has the same limitation

[R] MAS (non-parametric & semi-parametric) methods for survey & longitudinal data

2013-04-03 Thread Anupam Tyagi
that these seem to be actively researched topics by some statisticans working on theory --- no packages mentions of software were found in the few (I recall only one) empirical examples found. Anupam. [[alternative HTML version deleted]] __ R

[R] line plot over a barplot

2012-03-15 Thread anupam sinha
the center of each bar or through the top. Is it also possible to get the r-squared and p-values for this trendline? How do I all of the above? I would be extremely indebted by your help. Thanks in advance Regards, Anupam -- Graduate Student, Laboratory of Computational Biology, Center For

Re: [R] help with statistics in R - how to measure the effect of users in groups

2011-10-10 Thread Anupam
Groups are different treatments given to Users for your Outcome (measurement) of interest. Take this idea forward and you will have an answer. Anupam. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Bert Gunter Sent: Monday

[R] Survey data: Quantile Regressions

2011-08-23 Thread Anupam
s list who has used quantile regressions with survey data? Can you please provide examples of code with some explanations? Anupam. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [R] RWinEdt

2011-06-29 Thread Anupam
Stata's built in editor is a bad joke for users, and I could never make (X)Emacs or Notepad++ work for Stata. Anupam. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Richard Valliant Sent: Thursday, June 30, 2011 1:05 AM To: r-h

Re: [R] How do I make proper use of the by() function?

2011-06-10 Thread Anupam
You may want to read about several "apply" functions. They may help you do what you are trying. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Fredrik Karlsson Sent: Saturday, June 11, 2011 3:13 AM To: R-Help List Subject: [R] How d

Re: [R] Memory(RAM) issues

2011-06-10 Thread Anupam
code in your query can also help someone to respond to your message. Anupam. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Abhisek Saha Sent: Saturday, June 11, 2011 6:25 AM To: r-help@r-project.org Subject: [R] Memory(RAM) issues

Re: [R] Histogram

2011-06-09 Thread Anupam
help.st...@gmail.com] Sent: Thursday, June 09, 2011 5:58 PM To: Anupam Cc: Steven Kennedy; r-help@r-project.org Subject: Re: [R] Histogram It's difficult to understand what exactly you're looking for without seeing an example, could you post a simple version? imgur.com is a websit

Re: [R] Histogram

2011-06-09 Thread Anupam
Nice graphs there. Thanks. I too am looking to make a similar plot, with a difference: I need only the top parts of the many 'histograms' (a step-function like plot for histogram/bar-plots). I already have values for "heights" of bars for x1-x2 intervals computed from a large survey data; I want st

Re: [R] Decision Trees /Decision Analysis with R?

2011-06-08 Thread Anupam
his method is used extensively in medicine and public health to study decisions. It even uses MCMC, though with a different flavor --- it may even be a different kind of food. Anupam. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf O

[R] overlapping linear plots

2011-01-27 Thread anupam sinha
. Regards, Anupam -- Graduate Student, Laboratory of Computational Biology, Center For DNA Fingerprinting And Diagnostics, 4-1-714 to 725/2, Tuljaguda complex Mozamzahi Road, Nampally, Hyderabad-51 [[alternative HTML version deleted]] __ R-help

[R] empirical df, cdf and crossing points

2010-09-23 Thread anupam
Hello, I am using survey data with two stage sampling for two sub-populations. I am looking for a package (or packages) that can do the following for a measure of weight. The sub-populations are M (male) and F (female). (1) empirical df and cdf for weight, and compare that across two sub- popula

Re: [R] problem opening pdf device on Windows 7

2010-09-23 Thread anupam
Peter Dalgaard gmail.com> writes: > > Then I tried: > > > >> pdf() > > Error in pdf() : unable to start device pdf > > In addition: Warning message: > > In pdf() : cannot open 'pdf' file argument 'Rplots.pdf' > > And your working directory is writable for you? Otherwise, "Change dir" > from the

[R] problem opening pdf device on Windows 7

2010-09-22 Thread anupam
I can not open PDf device. Acrobat is closed. I have checked archives but could not find a solution. What should I do? > cont.cdfplot("myanalysis.pdf", myanalysis$CDF, ylbl.r="Stream Length (km)") Error in pdf(file = pdffile, width = width, height = height) : unable to start device pdf In addi

[R] Error while installing 'netmodels'

2010-02-16 Thread anupam sinha
SUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tcltk_2.9.0 tools_2.9.0 > Detecting remotely related proteins by their Error: unexpected sy

Re: [R] Directory operations

2010-01-10 Thread anupam sinha
Hi Uwe, Thanks for your suggestion . Here's my code. I am confused as to how to initialize an empty list . Here I have used pairlist() *list.files()->org_xml_dirs for (i in org_xml_dirs) { setwd(file.path("/home/anupam/Research/Anupam_data/ORG_XML_FILES/",i)) o

Re: [R] Directory operations

2010-01-09 Thread anupam sinha
Hi Jim, Thanks for your suggestion. I tried scripting but gives me an error. Can you tell me what am I doing wrong here ? *> list.files()->org_xml_dirs > for (i in org_xml_dirs){ + setwd("/home/anupam/Research/Anupam_data/ORG_XML_FILES/i")} Error in setwd(&qu

[R] Directory operations

2010-01-08 Thread anupam sinha
). What I want to do is to enter into the first directory read all the xml files do certain operations come out of the directory and do the same thing for another directory. Can anyone help me out ? Thanks in advance for any suggestions. Regards, Anupam Sinha [[alternative HTML version

[R] Help regarding frequency distribution Graphs

2009-08-26 Thread anupam sinha
ould like to get a smooth curve between "P(k) vs k". I have already tried *"hist*" function in R but want something more specific. Can anyone help me out ? Thanks in advance. Regards, Anupam Sinha [[alternative HTML version deleted]] __

Re: [R] Problems in plotting with abline

2009-07-13 Thread anupam sinha
_eco_bet) > abline(lmout) > > Regards, > Alain > > > > > anupam sinha wrote: > >> Dear R-users, >> I am using R(a package igraph) to calculate certain >> topological features of networks. When I try to draw a plot between

[R] Problems in plotting with abline

2009-07-13 Thread anupam sinha
Thanks in advance. Regards, Anupam Sinha [[alternative HTML version deleted]] __ 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] Fitting a trend-line

2009-07-08 Thread anupam sinha
Thanks a lot for all your suggestions. Regards, Anupam [[alternative HTML version deleted]] __ 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

[R] Fitting a trend-line

2009-07-08 Thread anupam sinha
Hi all, I am new to R. How does one go about fitting a trend-line to a scatter plot? Any help is appreciated. Thanks and regards, Anupam [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] problem with "ls" command

2009-05-29 Thread anupam sinha
item called "KEGG.db" on the search list and this is true for any package. Can anything be done ? Regards, Anupam Sinha, Graduate Student, Laboratory of Computational Biology, Centre for DNA fingerprinting and Diagnostics Hyderabad, India -

Re: [R] Unable to load R

2009-05-28 Thread anupam sinha
ot; plugin rhel-x86_64-client-5 100% |=| 1.3 kB 00:00 Setting up Install Process Parsing package install arguments Package readline - 5.1-1.1.x86_64 is already installed. Package readline - 5.1-1.1.i386 is already installed. Nothing to do Plzz help me out. Cheers, Anupam S

[R] Unable to load R

2009-05-27 Thread anupam sinha
or directory* I have checked for the presence of the above mention library and found that the library is present. I have run out of ideas. Can anyone help me out??? I will be greatly indebted. Cheers, Anupam Sinha, Graduate Student, Lab of Computational Biology, Centre for DNA Fingerprinting

[R] Unable to install R package

2009-05-11 Thread anupam sinha
g++ accepts -g... no checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. Regards, Anupam [[alternative HTML version deleted]]

[R] Problems with old version of R

2009-04-22 Thread anupam sinha
Thanks in advance. Anupam Sinha [[alternative HTML version deleted]] __ 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 provide

Re: [R] R-help Digest, Vol 74, Issue 20

2009-04-22 Thread anupam sinha
Thanks in advance. Regards, Anupam Sinha [[alternative HTML version deleted]] __ 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 provide