Re: [R] A question on Statistics

2018-06-30 Thread Hasan Diwan
Christofer, On Sat, 30 Jun 2018 at 12:54, Jeff Newmiller wrote: > > You should use Stack Exchange for questions about statistics. Specifically, https://stats.stackexchange.com/ -- H -- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 If you wish to request my time,

Re: [R] Convert list of data frames to one data frame

2018-06-30 Thread Jeff Newmiller
Your request is getting a bit complicated with so much re-hashing, but here are three solutions: base only, a bit of dplyr, and dplyr+tidyr: # # input data employees4List = list(data.frame(first1 = "Al", second1 = "Jones"), data.frame(first2 = c("Al2", "Barb"),

Re: [R] Convert list of data frames to one data frame

2018-06-30 Thread Ira Sharenow via R-help
I would like to thank everyone who helped me out. I have obtained some offline help, so I would like to summarize all the information I have received. Before I summarize the thread, there is one loose end. Initially I thought library(dplyr) dplyr::bind_rows(lapply(employees4List, function(x) rbin

Re: [R] parallel processing in r...

2018-06-30 Thread Patrick Connolly
If you use gkrellm, you'll get a plot of each core's activity so it's easy to see how many are being used. yum install gkrellm. HTH On 07/01/2018 06:16 AM, Jeff Newmiller wrote: > Use "top" at the bash prompt. > > Read about the "mc.cores" parameter to mclapply. > > Make a simplified example v

Re: [R] A question on Statistics

2018-06-30 Thread Jeff Newmiller
You should use Stack Exchange for questions about statistics. You should also think a bit before you post, regardless of where. You are the one who described this as a highly asymmetric distribution, and didn't say anything about it being centered at zero. You already answered your own questio

[R] A question on Statistics

2018-06-30 Thread Christofer Bogaso
Hi, I have a quick question on Statistical distribution as follows, hoping Statisticians here would give me very insightful feedback. Say, I have a large sample from a highly asymmetric distribution ranging from -Inf to +Inf. Now I wish to calculate sample X1 and X2 within which middle 70% probab

Re: [R] parallel processing in r...

2018-06-30 Thread Jeff Newmiller
Use "top" at the bash prompt. Read about the "mc.cores" parameter to mclapply. Make a simplified example version of your analysis and post your question in the context of that example [1][2][3]. You will learn about the issues you are dealing with in the process of trimming your problem, and wi

Re: [R] parallel processing in r...

2018-06-30 Thread Bert Gunter
The effectiveness of parallelizing code, be it with mclapply or otherwise, depends in large part on the code, which you failed to show. I cannot answer your other question. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into

Re: [R] Question

2018-06-30 Thread Jeff Newmiller
Your question is notable for what it is missing... any trace of R code. [1][2][3] Do read the Posting Guide. I don't see "Sargan" in base R, so your analysis likely used a contributed package... there seem to be a couple, so your example code would clarify. I don't see the number of IVs listed

[R] parallel processing in r...

2018-06-30 Thread akshay kulkarni
dear members, I am using mclapply to parallelize my code. I am using Red Hat Linux in AWS. When I use mclapply, I see no speed increase. I doubt that the Linux OS is allowing fewer than the maximum number of cores to mclapply ( by default, mclapply takes all the ava

Re: [R] OT --- grammar.

2018-06-30 Thread Bert Gunter
No substantive comment. But your addendum does bring to mind Gilbert and Sullivan (HMS Pinafore): " I am never known to quail At the fury of a gale, And I'm never, never sick at sea! Chorus. What, never? Captain. No, never! Chorus. What, never? Captain. Hardly ever! " https://www.letssingit.com/

[R] Question

2018-06-30 Thread Łukasz Piętak
Hi, My name is Luke and I come from Poland. I have one question, maybe very simple, but I can not resolve it. In dynamic panel data (GMM estimator) after running the model, I recieve a AR test and Sargan test, but the "number of instruments" are not displayed. In Stata and Gretl this informati

Re: [R] OT --- grammar.

2018-06-30 Thread Patrick Connolly
How about "Physics / politics / economics are my favoruite subject"? Might be fun to see how long we could make that list. It seems to be a fact of life that it's impossible to make a (useful) language that has totally consistent grammar. Something else to consider:I knew an English teacher wh

Re: [R] Convert list of data frames to one data frame

2018-06-30 Thread Ira Sharenow via R-help
Bert, Thanks for your idea. However, the end results is not what I am looking for. Each initial data frame in the list will result in just one row in the final data frame. In your case Row 1 of the initial structure will become 1 b 2 c3d NA NA NA NA in the end structure Row 2 of the initial s