Re: [R] Creating a year-month indicator and groupby with category

2022-10-02 Thread Rui Barradas
Hello, First of all, I'll repost the data at end because the OP posted with a pointer ref: problems = and this must be removed for the dput output to run. Suggestion: coerce to class "data.frame" and post the output of dput(as.data.frame(dat)) Now the plot. Here are two plots of share by

[R] [External Help] Multivariate Polynomials in R

2022-10-02 Thread Leonard Mada via R-help
Dear R Users, I have written some R code for multivariate polynomials in R. I am looking forward for some help in redesigning and improving the code. Although this code was not planned initially to be released as a package, the functionality has become quite versatile over time. I will provi

Re: [R] Help with steam graph

2022-10-02 Thread David Winsemius
I think you are being dishonest. That code does not appear on hrbrmstr's vignette at least in a form that I recognize. When I run your code from the first posting with all the instances of `com_num` replaced by `com_name` and removing the `pointer` entry in dat which throws an error when tryin

[R] Creating a year-month indicator and groupby with category

2022-10-02 Thread Tariq Khasiri
Hello, I have the following data. I want to show in a line plot how each different company is earning over the timeline of my data sample. I'm not sure how I can create the *year-month indicator* to plot it nicely in my horizontal axis out of my dataset. After creating the *year-month* indicator

Re: [R] Robust standard error

2022-10-02 Thread Ebert,Timothy Aaron
Most computer code will take a pile of numbers and return a pile of numbers. Reading the documentation should help you figure out where each measure is appropriate. It all depends on the purpose of a specific method and its assumptions and how those relate to your data, application, and model a

Re: [R] Help with steam graph

2022-10-02 Thread Tariq Khasiri
Actually in my main data the column name is com_num ( where mistakenly I pasted the sample data here under the com_name ). So, when I run the command successfully this is the error shows up - ▆ 1. ├─... %>% sg_legend(show = TRUE, label = "Share: ") 2. ├─streamgraph::sg_legend(., show = TRU

Re: [R] Robust standard error

2022-10-02 Thread Enrico Schumann
On Sun, 02 Oct 2022, Bert Gunter writes: > On Sun, Oct 2, 2022 at 6:42 AM Simone Mascia > wrote: > >> Is there a way to estimate Robust standard errors when using a nls() >> function? I'm trying to fit some data to a complicated model and everything >> works fine with nls() but I also wanted to o

Re: [R] Robust standard error

2022-10-02 Thread Bert Gunter
You may get a helpful response here, but generally speaking, this list is about R **programming**, and statistical issues/tutorials are off topic. You might try https://stackoverflow.com/questions/tagged/statistics if you don't get adequate help here. -- Bert On Sun, Oct 2, 2022 at 6:42 AM Simone

Re: [R] Help with steam graph

2022-10-02 Thread David Winsemius
I don’t see a column with the name ‘com_num’, so the error message makes complete sense. — David Sent from my iPhone > On Oct 2, 2022, at 5:06 AM, Tariq Khasiri wrote: > > Hi, i'm trying to create a steamgraph with the following data by creating a > unit indicator by combing the year and m

[R] Robust standard error

2022-10-02 Thread Simone Mascia
Is there a way to estimate Robust standard errors when using a nls() function? I'm trying to fit some data to a complicated model and everything works fine with nls() but I also wanted to obtain a robust estimate of my errors. I tried "coeftest(m, vcov=sandwich)" and it seems to work, but so does

[R] Help with steam graph

2022-10-02 Thread Tariq Khasiri
Hi, i'm trying to create a steamgraph with the following data by creating a unit indicator by combing the year and month. But, I'm getting error as : Error in `group_by()`: ! Must group by variables found in `.data`. ✖ Column `com_num` is not found. Run `rlang::last_error()` to see where the error