search for: plessthanpointohfive

Displaying 10 results from an estimated 10 matches for "plessthanpointohfive".

2013 Mar 18
2
Loop or some other way to parse by data generated values when it is not linear
I'm sorry for the really vague subject line but I am not sure how to succinctly describe what I am doing and what the problem is. But, here goes: 1. I have data with two-way data with frequencies. Below is an example, though in reality I am looking at about 10 different variables that I am crossing so the values of X1 and X2 change. X1 and X2 are place holders. Here's the dataset
2012 Aug 24
3
ifelse problem - bug or operator error
Hi R-Helpers, I don't think I need to post a dataset for this question but if I do, I can. Anyway, I am having a lot of trouble with the ifelse command. Here is my code: vn$PM.DIST_flag <- ifelse( (vn$PM.EXP > 0.0) & (vn$PM.DIST.TOT != 1.0), 1, 0 ) And here is my output that doesn't make ANY sense: PM.EXP PM.DIST.TOT PM.DIST_flag 0 0 0 0 0 0 0 0 0 177502 1 0 31403
2012 Jul 31
3
Help with NaN when 0 divided by 0
Hi All, I have some data where I am doing fairly simple calculations, nothing more than adding, subtracting, multiplying and dividing. I’m running into a problem when I divide one variable by another and when they’re both 0 I get NaN. I realize that if you divide a non-zero by 0 then you get Inf, which is, of course, correct. But in my case I never get Inf, just NaN because of the structure
2012 Feb 28
1
Packages/functions for competing risk analysis
Hi Rs, I am analyzing a time to event dataset with several competing risks. 0 = Active by end of study 1 = Stopped treatment to start another treatment 2 = Lost 3 = Dead My event of interest in Lost to Followup but starting a different treatment and dying are competing risks. All 1,2,3 events are events of exiting the study, but it's only 2-LTFU that we are concerned with (I know I am
2018 Mar 06
4
Capturing warning within user-defined function
Hi, I am trying to automate the creation of tables for some simply analyses. There are lots and lots of tables, thus the creation of a user-defined function to make and output them to excel. My problem is that some of the analyses have convergence issues, which I want captured and included in the output so the folks looking at them know how to view those estimates. I am successfully able to do
2018 Mar 06
0
Capturing warning within user-defined function
...r will sort through your code to help. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Mar 6, 2018 at 2:26 PM, Jen <plessthanpointohfive at gmail.com> wrote: > Hi, I am trying to automate the creation of tables for some simply > analyses. There are lots and lots of tables, thus the creation of a > user-defined function to make and output them to excel. > > My problem is that some of the analyses have convergence i...
2018 Mar 06
0
Capturing warning within user-defined function
...x -115.02321 45.97184 attr(,"warnings") [1] "glm.fit: fitted probabilities numerically 0 or 1 occurred" and lapply(z, attr, "warnings") will give you the warnings themselves. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Mar 6, 2018 at 2:26 PM, Jen <plessthanpointohfive at gmail.com> wrote: > Hi, I am trying to automate the creation of tables for some simply > analyses. There are lots and lots of tables, thus the creation of a > user-defined function to make and output them to excel. > > My problem is that some of the analyses have convergence i...
2018 Mar 06
1
Capturing warning within user-defined function
...> > > > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > On Tue, Mar 6, 2018 at 2:26 PM, Jen <plessthanpointohfive at gmail.com> > wrote: > > > Hi, I am trying to automate the creation of tables for some simply > > analyses. There are lots and lots of tables, thus the creation of a > > user-defined function to make and output them to excel. > > > > My problem is that some...
2012 Aug 07
2
Error using ddply inside user-defined function
Hi All, I *think* it's ddply because the function recognizes vr1, etc, in other parts of the function. Here's some code: # create dataset PROV.PM.FBCTS <- c(0.00 ,0.00, 33205.19, 25994.56, 23351.37, 26959.56 ,27632.58, 26076.24, 0.00, 0.00 , 6741.42, 18665.09 ,18129.59 ,21468.39 ,21294.60 ,22764.82, 26076.73) FBCTS.INV.TOT <- c(0 , 0, 958612, 487990, 413344, 573347,
2010 Jul 23
2
decimal seperator
Hi R-List, I have a question regarding R-language formats, I think. I am producing a series of graphs (using plot, barplot, barchart, and bwplot, using either text or mtext to place values on the graphs) and tables for a Francophone country. In fact, I have already done so. However, while they are pleased with the results they've requested I convert all of my decimal points into the French