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

Speed up bootstrapped t-stat calcilations

Dear Stata users, My dataset has 776 variables in time-series format. I am running the following code: forval i=1/776 { regress var_MA22Return`i', vce(bootstrap, reps(500)) eststo var_MA22Return`i' } I...

View Article


Transforming Likert Scaled Variables (Right Skewed) to Normal Distributions

Dear All, I am writing to ask about possible methods in which Likert scaled variables (5 point and right skewed - lots of 5s) can be transformed so that the distribution becomes normal and they can be...

View Article


Matching keywords in a string with regexm

Hello, I've been trying to use the regexm command to match certain keywords within a string variable. However, I was wondering if anyone knows how to get an exact match for a word within a sentence?...

View Article

gsem assumptions

I have learned how to create a model on gsem. However, I am not managing to check gsem assumptions on STATA. It is fairly easy to check using sem (estat gof command), but STATA does not recognize this...

View Article

Identifying occurrence of different events within a time period

Dear Statalist, My longitudinal dataset is organized in the following way: variables: ID, test (categorical 1/4), date (in %td format) ​I am interested in flagging a person if within 6 months period...

View Article


spatial LM test on 2SLS residuals

Hello everyone, I was wondering if it is correct (and possible) to carry an LM test on the residuals of a 2SLS estimated model for spatial dependence. Thanks. girogioc

View Article

How do I compare a sub-sample of the data set with the full dataset?

Hello I have a dataset of questionnaire responses from participants. My aim is to discover whether a subsample of this dataset is representative of the larger sample (which includes the sub-sample). I...

View Article

Implementing a triangular distribution for mixed legit

Dear List, I am currently using a mixed logit to estimate wtp to avoid power outages. The attributes are duration of power outage, time of day of outage (peak versus non-peak), season in which outage...

View Article


Multiresponse variable as dependent - question about treatment and analysis

Dear members, I have tried to find my answer, but I could not find enough material to be sure about this issue. I have a survey dataset in which one of the variables is a multiple response question...

View Article


bootstrat only works with noisily / trace

Dear Stata list, I am running a user-written program through -bootstrap-, but strangely enough it only works if I include the noisily or trace options. The setup is something like this: Code: program...

View Article

Looping over a lagged variable with macro

Dear all, I would like to run a regression testing different lag structures. In order to do so, since I have numerous models I'd like to test, I am trying to use macro but with scarce results. More in...

View Article

Opreg -

I need to estimate a production function using the olley-pakes semiparametric estimation procedure. I am using the routine -opreg- (developed by Yasar, Raciborski, & Poi, Stata Journal 2008, YSR...

View Article

cumulative return for borrowing spread

In the attached spreadsheet i want to find return for date (say 9 mar 2009 ) to find it i am using for loop but it shows error . please help

View Article


Date/hour variable: format just to see the hour and gen line graph

Hi all, I have a dataset containing fights in a school. I was asked to do some descriptive analysis, especially graphs, using the date variable to see if perhaps students fight more in a particular day...

View Article

Dynamic panel regression (xtdpd) with only time-series fixed effect without...

Dear All, I am struggling to find out how I can run a dynamic panel regression (xtdpd) with only time-series fixed effect without cross-sectional fixed effect. Currently, I have a code as follow: xtset...

View Article


calculate growth rate in panel data

Hi, In Stata IC 13.0 I have panel of branch level bank data and US state-level gdp. The data essentially looks like: Bank date statenum gdp A 2002q1 MA 100 B 2002q1 MA 100 C 2002q2 MA 110 D 2002q2 MA...

View Article

String: Add blank spaces

Good morning Stata forum, I have a String variable IncidentLocation. I want to use the first word of this string to concatenate it with another string. For example "Clinic (Medical Services Area)" will...

View Article


"Too many weights" error message

Hello, I ran across this error message ("too many weights") after drawing a stratified random sample from a large, administrative dataset (N=803903). The problem surfaces after trying to svyset the...

View Article

Having trouble with STATA overwriting values using replace command

I have a question that I am trying to code "Pick your top 3 favorite colors" Then I have a list 1. Blue 2. Red 3. Green 4. Yellow 5. Brown etc. Each of these colors is its own variable and if a student...

View Article

Boostrap error for a panel two step heckman process

Dear all, I am starting my Ph.D and have some problems with a model, I hope you can help me. I am using an unbalance panel of 8 year to estimate the % of sales due to product innovation (Y2) (in logs)...

View Article
Browsing all 72756 articles
Browse latest View live


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