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

How to transform a panel dataset variables in logarithmic (ln)

Dear statalist-users. Please i need a help with my panel data. I have a dateset for 43 countries, from 2002 to 2013. I also have these 5 variables ( distw, repórter_pib, dest_pib, total_export,...

View Article


Extract column names from a matrix

Hi, Is there a command to extract the names of the columns of a matrix? Thanks! Regards,

View Article


Randomly assign year

Hello, In the following data, I want to randomly assign "foreign" year to "control firm" based on "acquisition percent per year". For instance, I want to assign 1990 to 0.2 percent of control firm, 0.1...

View Article

memory vs speed tradeoff mata program

Hello everyone, ​I already posted a question pretty close to that one several months ago. I have a mata program that computes basic but heavy linear algebra tasks. It basically checks whether the...

View Article

Merging matrices

Dear Forum, I have a matrix with Leontief Coefficients with a size of 47x47. My aim is to merge the entries into a matrix with a size of 6x6. I would love to know if a command exists that allows me to...

View Article


STATA update issues

Dear all, May I ask a question on the STATA-update issue? I updated my STATA on Nov. 12 from STATA 13.0 to 13.1. It seems to be an incomplete update because I have problems with "merge" now (error...

View Article

Simulation exercise in difference-in-difference set up

Hi everybody, I am currently trying to set up a simulation exercise in Stata SE 14.0 and could use some input. In particular, I have a panel data set with firms and years and would like to solidify my...

View Article

Image may be NSFW.
Clik here to view.

Copy/pasted code made Stata think I'm using a Mata programming command!

Halp! I copied and pasted some code from a colleague without realizing it might have embedded programming. I don't use Mata or LaTeX and I'm not even sure how they integrate with Stata. The sad thing...

View Article


Establishing temporal precedence in survival analysis

Hello, I'm currently working on a project that tries to investigate whether conflict envolvement increases the hazard of regime failure. I would really appreciate any help with solving the problem...

View Article


R2 of xtivreg2, fe and ivreg2 with dummies

I runned several models using xtivreg2, fe. For curiosity, I runned the same models using ivreg2 using dummies to control for the fixed effects. Not surprisingly, the results are the same. The R2...

View Article

Assign Year Randomly

Hello, In the following data, I want to randomly assign "foreign" year to "control firm" based on "acquisition percent per year". For instance, I want to assign 1990 to 0.2 percent of control firm, 0.1...

View Article

how can identify two group of variable form some separate variables?

Hello every one. I have five category of dairy products like milk, cheese,,, from one brand. The level of purchasing is define as a ordered value (very low, low,...,very high). It seems some categories...

View Article

irf command

I am trying to use Stata's irf command to create impulse response functions my command goes as follows: irf create arima12, set(IRFS, replace) step(4) but i keep getting an error msg saying "cannot...

View Article


Collapse with condition

Dear Stata Users, My dataset is in panel form. There are 6 variables: IssueCode, IssueName, InvestorCode (defines type of investor), BuyTradingValue, SellTradingValue, date. I need to calculate sum of...

View Article

Medeff command

Dear all, I would like to use Stata to do a mediation and moderated mediation analysis for my masters dissertation. For the simple mediation analysis I would like to use the 'medeff' command. However...

View Article


Mimicking the import excel firstrow option

I have some excel data which is transposed (i.e. the variable names are observations and the time range are the variables). The goal is to clean and format it entirely in Stata. It looks something like...

View Article

propensity scores as weights to create the control groups and combining it...

Hello, I want to create comparison group of nonacquired firms involves a two-step matching process. The first step, a probit regression, estimates the probability of foreign acquisition based on past...

View Article


Heckprob

Hello, I have a question related to " Heckprobit " command. This command uses the process suggested by Van de Ven and Van Praag of (1981) ? Or estimates the parameters jointly by maximum likelihood ?...

View Article

How can I copy values from a variable to a different observation?

Hi guys, I'd appreciate someone's help. I'd like to know how can I copy a value from one observation to another. I've got married people and the place where they were born. There's an identifier to...

View Article

Displaying specific output in a loop

Dear all, I'n using Stata 13.1. I have a balanced panel data with 106 countries. For each country I want to test if it demonstrates an inverted U shape over time in some variable. For this end I ran a...

View Article
Browsing all 72758 articles
Browse latest View live


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