Community Profile

Last seen: mer än ett år ago Active since 2020

#### Content Feed

View by

Question

How to bin a variable and create new variables for each bin
Name = [Alice Bob Cate Doug Ernest Fan] Age = [23 15 24 32 44 22] T = table(Name,Age) I want to create bins for the variabl...

mer än ett år ago | 2 answers | 0

### 2

Question

Filter rows based on presence of string
I have a 100 x 1 vector called 'gender'. There are only two values in the vector: 'male' and 'female'. These are string values. ...

mer än ett år ago | 2 answers | 0

### 2

Question

Creating a timeseries using number of rows
I want to create a timeseries in the format 'dd-mm-yyy hh:mm' and I want the granularity of data to be hourly. For example, if ...

mer än ett år ago | 1 answer | 0

### 1

Question

How to predict future values using time series regression
I have a dataset with a time variable t which is in the format: dd-mm-yyyy hh:mm:ss I also have five other independent variable...

mer än ett år ago | 1 answer | 0

### 1

Question

Predictions for stepwise regression model
Hi all, I have created a regression model using the stepwisefit function. I have 5 independent variables (x1,x2,x3,x4,x5), and ...

mer än ett år ago | 1 answer | 0

### 1

Question

Writing a for loop to perform an operation on a vector
I have a vector x = [4,2,6,5,3,8,2], where n (number of elements) = 7. I want to write a function f = (1+x1)^n1 + (1+x2)^n2 + ...

mer än ett år ago | 1 answer | 0

### 1

Question

Normalize using first element of vector
I want to normalize the elements of the following vector using the first element. I want the first element of my vector 'stock_m...

mer än ett år ago | 1 answer | 0

### 1

Question

How to calculate new column values by using present_value and present_value -1?
I have a 312x1 vector, called v(t). I want to calculate a new vector such that new(t) = v(t)/v(t-1). How do I go about this? How...

mer än ett år ago | 1 answer | 0