Quantcast
Channel: Statalist
Browsing all 72758 articles
Browse latest View live
↧

Saving only some of the regression results after nested loop

Hello Dear Statalist Members, I am running a nested loop with the following code to get the regression results with all the possible combinations of lags of independent variables: Code: forvalues...

View Article


Obtaining multivariate regression equation automatically

In a univariate regression, aaplot command can be used to display the regression equation in a graph which can be directly copied. However, is there a command to get Stata to display the equation of a...

View Article


Why xlabel failed to work in my graph?

I want to draw a twoway scatter plot with linear fitted line, the initial graph is like Array Notice that the on the x-axis, there is only two labels, represent the minimum and maximum of the variable:...

View Article

Why xlabel failed to work in my graph?

I want to draw a twoway scatter plot with linear fitted line, the initial graph is like Array Notice that the on the x-axis, there is only two labels, represent the minimum and maximum of the variable:...

View Article

Different p value from ttest and logit

Hi, maybe I am overlooking something very simple here. Anyways: I have a dataset of 29 observations and a range of variables. The observations are given biological structures, and we are studying...

View Article


New resource for developing Java Plugins

If anyone uses Maven as a part of their development toolchain for Java, there is now a Stata Archetype available to help get a bit more boilerplate code out of your way. You can add the repository...

View Article

Margins command produces same marginal effects for evaluation at different...

Dear all, I am currently performing an FE estimation with an interaction term of a continuous and a categorical variable. After that, I try to evaluate the marginal effects of the categorical variable...

View Article

Variable value "not in universe"

Should cases with variable value "not in universe/not applicable" be excluded from the sample/analysis?

View Article


error "by() option required" after ttest command

Dear, I used egranger command to run Engle-Granger 2-step ECM estimation (see below), then used test and ttest command to test the short-run and long-run causality between variables. Because ttest...

View Article


Levpet problem

Hey Guys i hope you're having a nice weekend. I am trying to use the levpet estimation but i have a problem.. r(2000) no observations... But I do have all of the variables.. Just to try it, i dropped...

View Article

Wisorizing variable at the upper and lower 1%

Dear Statalist Users - I would like winsorize the sales growth variables at upper and lower 1%. The variable is summarized below: Variable Obs Mean Std. Dev. Min Max SGrowth 3,000 .16 2.5 -7.22 14.7067...

View Article

moptimize for simultaneous equations

Hi, I am trying to jointly estimate two equations using moptimize, but I am having some troubles. Let's say that my log likelihood function is llf=llf1+llf2, where 1 and 2 denote the first and the...

View Article

Error cmp (conditional mixed process) command

Dear Stata users, I am using Stata version 11.2 in a Mac to estimate models using the user-written-cmp- (conditional mixed process) command . I installed the version from ssc, and if I check with -ssc...

View Article


-power- with option graph leads to Error message 199 ("command des...

Dear all, I use Stata 14.1 (all updates installed) and I have encountered a reproducible error that I do not understand. It appeared when I conducted a power analysis on actual data, but it is...

View Article

Check all N contributed

I need to check at least one datapoint has been entered for all my N within a varlist.....could someone please help me? It is for this egen: egen anypreschool = anymatch (kk144c kk145c kk146c kk143c...

View Article


Help with combining variables

Good Afternoon, I have a large data set which has about 11,000 observations like the code presented below. I am trying to find a way to combine the values under "var" into a single one for each year....

View Article

Extracting the first three consonants with a few exceptions

Hello Statalisters, I need to make a new string variable, which contains abbreviations of another string variable. The ultimate goal is to shorten words' lengths in every observation. Question: How to...

View Article


Estimating the Beta of a stock based on monthly regressions.

Dear SatatListers, I hope you are all doing well. I have a simple problem. I have a dataset with monthly frequency (panel data). I included a part of the data below. I need to regress the following...

View Article

Carry trades and Currency crashes, brunnermeier

Hello. I understand this is not a stata question, but as there might be someone on this group who knows what I am talking about ... I will try. I have a difficulty of understanding something in this...

View Article

Change table shape

Dear Stata Users, My data is in time-series format. Each column represents stocks which were selected in a respective week. Code: * Example generated by -dataex-. To install: ssc install dataex clear...

View Article
Browsing all 72758 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>