Community Profile

photo

Rabeya


Univ of Manchester

2012년부터 활동

Followers: 0   Following: 0

연락

Rabeya
Professional Interests: research

통계

  • Thankful Level 3

배지 보기

Feeds

보기 기준

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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년 초과 전 | 답변 수: 0 | 0

0

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 2 | 0

2

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 2 | 0

2

답변

질문


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년 전 | 답변 수: 4 | 0

4

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 12년 전 | 답변 수: 2 | 0

2

답변

질문


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년 전 | 답변 수: 2 | 0

2

답변

질문


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년 전 | 답변 수: 2 | 0

2

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 0 | 0

0

답변

질문


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

대략 12년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 2 | 0

2

답변