Re: [R] [FORGED] Re: get() return nothing

2017-02-18 Thread Fix Ace via R-help
Thank you very much for the information! I will try it! Ace On Tuesday, February 14, 2017 8:48 AM, Ben Tupper wrote: Hi, When you want to get 'something' out of a loop you need to assign that 'something' to a variable that persists outside of the loop. I think it is a scoping thing.

Re: [R] Graph and Compare Distributions

2017-02-18 Thread Jeff Newmiller
Please post your code. Read the Posting Guide, which points out that you need to put the code in the body of your email and make sure the email is sent in plain text format (a setting in your mail software). This is not a "do your work for you" mailing list. -- Sent from my phone. Please excus

Re: [R] A strange arithmetic error in R (maybe a bug)

2017-02-18 Thread Berend Hasselman
> On 18 Feb 2017, at 05:18, T. Zhang wrote: > > Hello, > > Today I happened to notice a strange error in R. If you type > (2.01-0.06)==1.95, output from R is “FALSE”, which is wrong. But if you type > (1.01-0.06)==0.95, output is “TRUE”, which is correct. I tested this in two > systems: R 3.

Re: [R] A strange arithmetic error in R (maybe a bug)

2017-02-18 Thread Adrian Dușa
There is no bug, of course, this is a common floating point arithmetic misunderstanding. > print(2.01, digits = 20) [1] 2.0097868 Please search for "What every scientist should know about floating-point arithmetic" and you'll hopefully understand what the "bug" is. Hth, Adrian On

[R] Discrete Hours Labour Supply Modelling

2017-02-18 Thread Rodriguetti
Hello, I am an economist migrating from Stata to R and I am modelling labour supply responses with a discrete choice model. I would just like to know if any person here knows about a researcher working in "Discrete Hours Labour Supply Modelling". Amazingly, I am having difficulties to find econo

[R] A strange arithmetic error in R (maybe a bug)

2017-02-18 Thread T. Zhang
Hello, Today I happened to notice a strange error in R. If you type (2.01-0.06)==1.95, output from R is “FALSE”, which is wrong. But if you type (1.01-0.06)==0.95, output is “TRUE”, which is correct. I tested this in two systems: R 3.3.2 in my iMac and R 3.2.0 on my school’s Linux server. Both

[R] splm/spgm : How to specify the instrumental variables for certain dependent variable ?

2017-02-18 Thread Kokia Z
spgm(formula, data=list(), index=NULL, listw =NULL, listw2 = NULL, model=c("within","random"), lag = FALSE, spatial.error=TRUE, moments = c("initial", "weights", "fullweights"), endog = NULL, instruments= ~ X1 + X2, lag.instruments = FALSE, verbose = FALSE, method = c("w2sls", "b2sls", "g2sls", "ec

[R] Graph and Compare Distributions

2017-02-18 Thread Vasilis Bardakos
Dear Sirs, I'm trying to demonstrate and compare my data first digit distributions in comparison with benford's law, but I cannot figure out how do a correct ggplot histogram. plot() works fine though. The data are the following (probabilities): [1] 0.37101911 0.17515924 0.08917197 0.08121019 0.0

Re: [R] unidentified option(s) in mean.model

2017-02-18 Thread Rui Barradas
Helo, No attachment came through. Change the file extension from .R to .txt and resend, there aren't many types of files r-help accepts. Rui Barradas Em 17-02-2017 17:20, Allan Tanaka escreveu: So i tried brute force to find best fitted GARCH model for prediction.The code works fine as it r