Community Profile

photo

Rabeya


Univ of Manchester

Active since 2012

Followers: 0   Following: 0

Message

Rabeya
Professional Interests: research

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


fminunc not to stop even if it does not converge in one or more of 1000 replications of a simulation
Hi, I have a simulation of 1000 replications including two optimizations each using fminunc. In some of the cases, one of the op...

11 years ago | 1 answer | 0

1

answer

Question


Random numbers seed setting
Hi, I am using randn('seed', 1) at the beginning of my code for a simulation with 1000 replications. This is to make sure tha...

11 years ago | 1 answer | 0

1

answer

Question


I have generated a large dataset. Now I need to draw random samples from it. How can I do this?
For simulation, I have to draw 1000 random samples from a large dataset. I am looking for some efficient way of doing this. Can ...

11 years ago | 2 answers | 0

2

answers

Question


generating same random numbers as stata
I want to generate same set of random numbers using matlab as well as stata. I understand that this should be done by setting 's...

11 years ago | 0 answers | 0

0

answers

Question


optimization using fmincon where objective function includes the lagrange multiplier
my objective function is to maximize sum_i(log(1-lambda(yi-xi*beta))) with respect to beta subject to the constraint sum_i(yi-xi...

11 years ago | 1 answer | 0

1

answer

Question


Setting seed in random ('normal')
I am using random('Normal',2,5,T,1) to generate vector of random numbers from normal distribution with mean 2, variance 5. I wan...

12 years ago | 2 answers | 0

2

answers

Question


what does this mean? say for a matrix W, W(:,:,1)
I have seen this in a program code, but don't know what it means. Say for example, for any matrix W, W(:,:,1). I know W(:,:) i...

12 years ago | 1 answer | 0

1

answer

Question


adding a sequence of matrices
How can I add G number of matrices? I mean I need to sum G number of matrices. For example: G=3, so, x1=[1 2 3 4; 2 3 4 5], x2=[...

12 years ago | 1 answer | 0

1

answer

Question


partitioning a matrix based on another
I have two matrices,say, X=[1 2 2; 2 3 3; 3 5 5 ;6 1 2; 3 4 3] and ng=[2;3]. I want to partition X based on ng, i.e. x1=[1 2 ...

12 years ago | 2 answers | 0

2

answers

Question


repeating elements of a vector
I have two vectors, say lambda=[1; 2] and ng=[3;4]. I want to have a long vector where the elements of lambda are repeated the c...

12 years ago | 4 answers | 0

4

answers

Question


grouped data: generating a random error with zero group mean
I have a variable 'group' with 20 distinct values randomly assigned for 8000 observations. I need to generate a random error ter...

12 years ago | 1 answer | 0

1

answer

Question


generating a sequence 1,2,3,4,....,n
Without using a for loop, how can I generate an index 1,2,3,...,n?

12 years ago | 2 answers | 0

2

answers

Question


sorting a matrix in descending order
I have a matrix group = 0 0 0 1 0 1 0 0 0 0 1 0 0 1 0 ...

12 years ago | 2 answers | 0

2

answers

Question


interaction dummies
I have two variables, time (T) with two values and region (R) with 10 values, and thus two sets of dummy variables. how can I ge...

12 years ago | 2 answers | 0

2

answers

Question


creating a variable to use for grouping data
I want to create a variable (a column vector) with a specific length (8000), containing values 1 to 10 randomly assigned and wit...

12 years ago | 1 answer | 0

1

answer

Question


removing skewness of a variable
I want to transform the residuals that I got from a regression to have 0 skewness. Say this is res, when I computed skewness(res...

12 years ago | 0 answers | 0

0

answers

Question


removing skewness of a variable
I have a variable with specific skewness. How to correct the variable to have 0 skewness?

12 years ago | 1 answer | 0

1

answer

Question


deleting selective multiple rows from a data matrix
I want to delete rows of a matrix depending on some specific values of one of its columns. Say, if A=[1,2,3,1;5,6,7,2;9,10,11,...

12 years ago | 2 answers | 0

2

answers