Questions tagged as 'r'

0
answers

How to ignore the NA values in a dataframe when the auto.arima

I have the code to run the auto.arima in a small dataframe, however, in some columns I have several 'NA' values (ranging from 1990 to 2003, for example). How do I establish in my code that such values are ignored? > bra.ts <- ts(CSV_BRA,...
asked by 19.09.2018 / 03:40
0
answers

Neural Network in R - Input Data

I'm having a problem in the input data of a neural network, I'm working with entries of 5000 pairs of numbers, these numbers are shifts in X and Y, ie based on the previous frame and the current frame I can see which was the displacement and thu...
asked by 18.09.2018 / 05:04
0
answers

How to multiply quotes on R?

This piece of code is inside a function I'm writing. In the last two lines is my problem. firm1 = quote(q0_1 + c1 * q1 + c1_2 * q1) ## firm 1's cost curve firm2 = quote(q0_2 + c2 * q2 + c2_2 * q2) ## firm 2's cost curve q = quote(q1 + q2) #tot...
asked by 13.09.2018 / 20:38
0
answers

How to leave in a boxplot in R, all x-axis values written in the chart?

I am plotting a boxplot type chart in R, but some values it is omitting. There is only the little dot on the x axis for the boxplot, but the name of that boxplot does not appear. I believe it is due to the amount of boxplots that exists within t...
asked by 07.09.2018 / 19:37
0
answers

GLMM with data distribution in 3 different periods in time

I'm trying to create a model in R, which involves many explanatory variables, a response variable called '' HUNTED '', and the data is spread over 3 different time periods. My dataset is too large and I've just put some of it here so you can und...
asked by 05.09.2018 / 23:11
0
answers

Function to go to a certain part of the code

There is some function in R so that given a condition it skips to certain part of the code. I'm implementing an audit model, but at certain points it needs external files that are sent only at the end of the year, but I'd like to review the othe...
asked by 27.08.2018 / 19:54
1
answer

How to upload to Google Drive from R

I was seeing about the googledrive package of R's CRAN and I can not seem to get it to work, how to get it into my account. My goal is to upload a data frame and as CSV, direct to my account.     
asked by 01.08.2018 / 23:27
0
answers

"Error in optim" using Hurdle Model

I have a set of data, where the response variable of my study has many zeros; therefore, I decided to understand the influence of the predictor variables using a "hurdle model". Here's how my code looks: fórmula <- dados$Nº_de_artigos ~ dad...
asked by 30.07.2018 / 23:59
1
answer

R - Create binary variable (dummy) value 1 for 50% of the total

Well, I would like a help, I have this data each column has 100%, first wanted to index from highest to lowest and then make use of the dummy variable with a value of 1 for species that add up to 50%, the rest would be zero. Nome...
asked by 20.07.2018 / 07:34
0
answers

R - RFGLS Package

Good evening! I need to run a regression with the model FGLS - Feasible Generalized Least Squares, however, I only found a package capable of running it, RFGLS (). But I'm a beginner, both in R and in econometrics. Anyone who has ever used...
asked by 26.06.2018 / 02:54