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

exporting a big dta file to excel

I am trying to export a 4 columns and 290 million rows dta to an excel file but stata tells me: . export excel cep_res using "SIH_ceps", firstrow(variables) too many or no observations specified...

View Article


ARIMA and Insufficient Observations

Hello everyone, I'm pretty new to STATA, especially ARIMA functions, and I've spent the past few hours trying to figure out where I'm going wrong. Problem I'm trying to make a basic ARIMA model with my...

View Article


rolling kernel regression with varying bandwidth

Hello All, Glad to become a member of Statalist. I am trying to use kernel regression to predict the variance of A based on the variance of B (measured as return squared). For the variance of B, at...

View Article

How to save output of psmatch2?

Hi! I am wondering the way of storing result of "psmatch2" in matrix, In case of T-test, I used following statement. mat T[1,1] = r(mu_1) mat T[1,2] = r(mu_2) mat T[1,3] = r(mu_1) - r(mu_2) mat T[1,4]...

View Article

multilevel models and confidence interval (xtmixed)

I am running multi-level models using the xtmixed command in stata. I'm trying to make a graph that has mean predicted trajectory along with two confidence interval trajectories (upper and lower bounds...

View Article


RESET after Tobit

How do I run a Ramsey RESET test on a Tobit and model? I am trying to replicate the procedure I have already seen in many papers And I know it is possible as I have read three papers that present the...

View Article

How can I replace values within a specific variable, with the labels...

I am trying to replace the values in a variable with the labels associated with those variables, but I want to avoid writing multiple replace ... if ... statements. I need to do this for 50 different...

View Article

cross-validation to find optimal bandwidth at each time t

Hello listers, My dataset is quite simple, only 3 columns, i.e. date, variance of A and variance of B. I am trying to use Nadaraya-Watson kernel regression to predict variance of A conditional on...

View Article


interaction opposite signs

I have the following regression Leverage = @ + dummy + Cash + cashXdummy Dummy is 1 for international firms and zero for non-international. The results are puzzling Cash gives significant positive...

View Article


Using deviation coding (devcon) with linear regression

Has anyone used the devcon command with linear regression? I've been working with this and could use some advice on whether I've run this correctly. I have two variables - one a continuous variable...

View Article

Ways to clean ICD9 codes

I'm a newbie, and trying to clean up an ICD9 string variable that has some errant codes. An example is 530.809999999999999 which should be 530.81 I've tried using recode, and this is what I get: ....

View Article

copying a value within group

Dear all, I need help about the following issue: Target: In my data there exists a variable, x. Within each group of observations identified by a unique id (call the variable boxnumber), x is missing...

View Article

if command

I do not know why my -if command- below is not working. foreach a in 03 04 05 06 07 08 09 10 11 12 13 14 { foreach p in 01 02 03 04 05 06 07 08 09 10 11 12 { use RJ`i'`a'`p'.dta, clear if `a'==03 &...

View Article


Simulate (Monte Carlo) how to estimate the R-Squared, t-ratio, HAC t stats...

Dear all, I am trying to run a simulation for my MSc thesis, which is basically comes down to this: program define myreg drop et ut Vmin1 V V1 R R1 time set obs 660 gen time =_n tsset time mat sigma =...

View Article

How can I create a country-specific time trend in a panel model?

Hi Statalist-users, I am trying to run a panel data model with 19 countries across 10 years to observe the investment flows into each country. For that i have run a fixed effect model and also added...

View Article


Map Letters to positions in alphabet

Hi. I'd like to generate a variable that contains the relative positions of letters (in another var) in the alphabet. For example: : var1 new_var A 1 B 2 C 3 C 3 X 24 What's an elegant way to do this?

View Article

Add labels in ttdendro command

I tried to add labels for the "tree leaves" in the ttdendro graphs using the labels(varname) option. But the feedback said this option is not allowed in the ttdendro. Since the documentation said all...

View Article


Collapsing every group of 4 observations

Hello, I have some data which looks like this (although there are many more variables) Mar-1960 10 11 Jun-1960 22 21 Sep-1960 913 713 Dec-1960 1982 8311 This pattern repeats for a number of years. The...

View Article

Putexcel command works on one computer but does not work on another computer...

I have a user that gets this on one server. On another server it works correctly. . putexcel A1=("Poverty and SN Table") using allpovtest, replace //TITLE using not allowed r(101); We updated the...

View Article

putexcel error: "using not allowed"

I read this forum all the time, but I'm new to posting, so please forgive any mistakes. I just installed the October 29th Stata update, and now all my code involving the "putexcel" command is returning...

View Article
Browsing all 72768 articles
Browse latest View live


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